Linux systems' tail doesn't have -r.
Instead, we can use git's own --reverse sorting for rev-lists.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
tools/tools/git/git-arc.sh | ||
---|---|---|
367 | why not _commits=$(git rev-list --reverse $_commits) instead? |
Comment Actions
good point.
(mostly because I assumed that the people who wrote this knew git better than I do, and have exhausted its options already)
Comment Actions
It seems that this diff does not apply cleanly on top of main:
Here is why:
patch assumes: _commits=$(git rev-list $_commits | (tail -r 2>/dev/null || tac))
while in reality: _commits=$(git rev-list $_commits | tail -r)
https://reviews.freebsd.org/source/src/browse/main/tools/tools/git/git-arc.sh$343