git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fix git-rev-parse breakage
@ 2005-08-24  2:17 Linus Torvalds
  2005-08-24  3:22 ` Junio C Hamano
  2005-08-24 18:52 ` Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Linus Torvalds @ 2005-08-24  2:17 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List


The --flags cleanup caused problems: we used to depend on the fact that 
"revs_only" magically suppressed flags, adn that assumption was broken by 
the recent fixes.

It wasn't a good assumption in the first place, so instead of 
re-introducing it, let's just get rid of it.

This makes "--revs-only" imply "--no-flags".

[ Side note: we might want to get rid of these confusing two-way flags, 
  where some flags say "only print xxx", and others say "don't print yyy". 
  We'd be better off with just three flags that say "print zzz", where zzz
  is one of "flags, revs, norevs" ]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
---
diff --git a/rev-parse.c b/rev-parse.c
--- a/rev-parse.c
+++ b/rev-parse.c
@@ -160,6 +160,7 @@ int main(int argc, char **argv)
 			}
 			if (!strcmp(arg, "--revs-only")) {
 				revs_only = 1;
+				no_flags = 1;
 				continue;
 			}
 			if (!strcmp(arg, "--no-revs")) {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-08-24 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24  2:17 Fix git-rev-parse breakage Linus Torvalds
2005-08-24  3:22 ` Junio C Hamano
2005-08-24 18:52 ` Junio C Hamano
2005-08-24 19:03   ` Linus Torvalds
2005-08-24 21:34     ` [PATCH] Audit rev-parse users again Junio C Hamano
2005-08-24 21:40     ` [PATCH] Rationalize output selection in rev-parse Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).