[PATCH] Help scripts that use git-rev-parse to grok args with SP/TAB/LF

2005-07-22 Thread Junio C Hamano
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 t

[PATCH] Help scripts that use git-rev-parse to grok args with SP/TAB/LF

2005-07-18 Thread Junio C Hamano
The git-rev-parse command uses LF to separate each arguments 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, -Spickaxe of diff family), so even this