diff options
author | Jeff King <peff@peff.net> | 2023-05-08 21:01:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-08 23:50:28 +0200 |
commit | a9ea5296b772b795be1be112e98ff02c95cbe639 (patch) | |
tree | 099715f7ed487eab03a19764d2e0d5199132d712 /git.rc | |
parent | t7001: avoid git on upstream of pipe (diff) | |
download | git-a9ea5296b772b795be1be112e98ff02c95cbe639.tar.xz git-a9ea5296b772b795be1be112e98ff02c95cbe639.zip |
t7001: use "ls-files --format" instead of "cut"
Since ls-files recently learned a "--format" option, we can use that
rather than asking for all of "--stage" and then pulling out the bits we
want with "cut". That's simpler and avoids two extra processes (one for
cut, and one for the subshell to hold the intermediate result).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.rc')
0 files changed, 0 insertions, 0 deletions