1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 06:25:13 +01:00
Commit graph

6 commits

Author SHA1 Message Date
Junio C Hamano
5bb2c65aba [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>
2005-07-22 20:34:16 -07:00
Linus Torvalds
d6cb5e5f99 git-whatchanged: use the git-rev-parse helper
So now you can say

	git-whatchanged -p v2.6.12-rc5.. drivers/usb

and it will show you what changed (as a patch) in drivers/usb since the
v2.6.12-rc5 release.
2005-06-13 10:22:39 -07:00
Linus Torvalds
a7fa68c5f9 git-whatchanged: make default output format be pretty.
If you want the raw stuff, just do

	git-whatchanged --pretty=raw

and it wil act like it used to.
2005-06-12 20:35:04 -07:00
Linus Torvalds
c8265ac096 git-whatchanged: allow other pagers
(but still try to use '-S' if using less)
2005-05-21 09:44:16 -07:00
Linus Torvalds
ce7d9c9c3c git-whatchanged: use 'less -S' on the output to make it more user friendly 2005-05-19 09:07:19 -07:00
Linus Torvalds
02481aec2a Add silly "git-whatchanged" script.
It's a one-liner, but it's useful as documentation if nothing else.
2005-05-17 11:47:13 -07:00