git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] describe match pattern for soft tags too
@ 2008-06-03 17:59 Michael Dressel
  2008-06-03 20:24 ` Johannes Schindelin
  2008-06-03 22:48 ` Shawn O. Pearce
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Dressel @ 2008-06-03 17:59 UTC (permalink / raw)
  To: git


So far git describe --match <pattern> would apply the <pattern> only
to tag objects not to soft tags. This change make describe apply
the <pattern> to soft tags too.
---
  builtin-describe.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/builtin-describe.c b/builtin-describe.c
index df554b3..a1b8251 100644
--- a/builtin-describe.c
+++ b/builtin-describe.c
@@ -82,10 +82,10 @@ static int get_name(const char *path, const unsigned char *sha1, int flag, void
  	if (might_be_tag) {
  		if (is_tag) {
  			prio = 2;
-			if (pattern && fnmatch(pattern, path + 10, 0))
-				prio = 0;
  		} else
  			prio = 1;
+		if (pattern && fnmatch(pattern, path + 10, 0))
+			prio = 0;
  	}
  	else
  		prio = 0;
-- 
1.5.5.3

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

end of thread, other threads:[~2008-06-04 19:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 17:59 [PATCH] describe match pattern for soft tags too Michael Dressel
2008-06-03 20:24 ` Johannes Schindelin
2008-06-03 22:42   ` Shawn O. Pearce
2008-06-03 22:48 ` Shawn O. Pearce
2008-06-04  6:04   ` Junio C Hamano
2008-06-04 19:06     ` Michael Dressel

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).