diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-24 14:30:04 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-24 14:30:04 -0700 |
commit | 4866ccf0f434db118c4dcdeeab840eb4844d50a4 (patch) | |
tree | 43a82fd2053b5b69a0884add64f43bb44802abdc /diff.c | |
parent | ccf1ee327f9a7d51704578fa41ba255abfd3a730 (diff) | |
download | git-4866ccf0f434db118c4dcdeeab840eb4844d50a4.tar.gz |
Rationalize output selection in rev-parse.
Earlier rounds broke 'whatchanged -p'. In attempting to fix this,
make two axis of output selection in rev-parse orthogonal:
--revs-only tells it not to output things that are not revisions nor
flags that rev-list would take.
--no-revs tells it not to output things that are revisions or
flags that rev-list would take.
--flags tells it not to output parameters that do not start with
a '-'.
--no-flags tells it not to output parameters that starts with a '-'.
So for example 'rev-parse --no-revs -p arch/i386' would yield '-p arch/i386',
while 'rev-parse --no-revs --flags -p archi/i386' would give just '-p'.
Also the meaning of --verify has been made stronger. It now rejects
anything but a single valid rev argument. Earlier it passed some flags
through without complaining.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions