summaryrefslogtreecommitdiff
path: root/count-delta.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-23 02:08:32 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-23 03:34:16 (GMT)
commit5bb2c65aba9161ee77c42002009634e757005b4f (patch)
tree36946783915c59373a17b8537037a147e5d023c1 /count-delta.h
parent99cff830e0b5d57fb299f1937a46d62602f23c9b (diff)
downloadgit-5bb2c65aba9161ee77c42002009634e757005b4f.zip
git-5bb2c65aba9161ee77c42002009634e757005b4f.tar.gz
git-5bb2c65aba9161ee77c42002009634e757005b4f.tar.bz2
[PATCH] Help scripts that use git-rev-parse to grok args with SP/TAB/LF
The git-rev-parse command uses LF to separate each argument it parses, so its users at least need to set IFS to LF to be able to handle filenames with embedded SPs and TABs. Some commands, however, can take and do expect arguments with embedded LF, notably, "-S" (pickaxe) of diff family, so even this workaround does not work for them. When --sq flag to git-rev-parse is given, instead of showing one argument per line, it outputs arguments quoted for consumption with "eval" by the caller, to remedy this situation. As an example, this patch converts git-whatchanged to use this new feature. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'count-delta.h')
0 files changed, 0 insertions, 0 deletions