git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/1] Remove aliasing between COUNTED and UNINTERESTING flags used by rev-list.c

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jun 29, 2005, 14:16 UTC
Message-ID
<20050629141629.15754.qmail@blackcubes.dyndns.org>
The COUNTED and UNINTERESTING flags were unintentionally aliased.

This patch makes sure that flags defined in rev-list.c have distinct values from from those defined by epoch.h.

The aliasing may have caused unexpected behaviour of the git-rev-list --bisect flag.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
 rev-list.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
fb2676c0c3991666db9a3b0ebe222d8028c12a05
diff --git a/rev-list.c b/rev-list.c
--- a/rev-list.c
+++ b/rev-list.c
@@ -4,10 +4,10 @@
 #include "blob.h"
 #include "epoch.h"
 
-#define SEEN		(1u << 0)
-#define INTERESTING	(1u << 1)
-#define COUNTED		(1u << 2)
-#define SHOWN		(LAST_EPOCH_FLAG << 2)
+#define SEEN        (LAST_EPOCH_FLAG << 1)
+#define INTERESTING (LAST_EPOCH_FLAG << 2)
+#define COUNTED     (LAST_EPOCH_FLAG << 3)
+#define SHOWN       (LAST_EPOCH_FLAG << 4)
 
 static const char rev_list_usage[] =
 	"usage: git-rev-list [OPTION] commit-id <commit-id>\n"
------------
Message 1 of 1 in “Remove aliasing between COUNTED and UNINTERESTING flags used by rev-list.c”
  1. 1/1 Remove aliasing between COUNTED and UNINTERESTING flags used by rev-list.cJon Seymour, Jun 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.