Page MenuHomeFreeBSD

git-arc: allow word splitting in build_commit_list()
ClosedPublic

Authored by rew on Sep 4 2021, 7:49 PM.
Tags
None
Referenced Files
F131770067: D31838.diff
Sat, Oct 11, 12:51 AM
Unknown Object (File)
Thu, Oct 9, 11:40 AM
Unknown Object (File)
Tue, Oct 7, 9:49 PM
Unknown Object (File)
Sat, Sep 13, 12:49 PM
Unknown Object (File)
Sep 10 2025, 8:46 AM
Unknown Object (File)
Sep 1 2025, 1:45 AM
Unknown Object (File)
Aug 30 2025, 3:08 PM
Unknown Object (File)
Aug 30 2025, 10:05 AM
Subscribers

Details

Summary

Allow word splitting and disable shellcheck SC2086 when using
git-rev-list to build the commit list.

Fixes: 4fd0c6ab1a9e ("Fix most shellcheck warnings in git-arc.sh")

After updating I started getting the following error when doing git arc list main..feature:

fatal: ambiguous argument 'b48029983aecdc79e14ac161b787a13172fe796a
^ba91e31f478aaade96bbdbf01560e8b7cbe41b56': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git-arc: invalid commit ID main..feature

It seems that git-rev-list expects commits to be listed separately, this patch fixes the above error.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41379
Build 38268: arc lint + arc unit