threads / patch / 1151

patchRemove use of SHOWN flag

Subject: [PATCH] Remove use of SHOWN flag

## tl;dr

One message between Jul 7, 2005 and Jul 7, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jon Seymour· Jul 7, 2005, 02:00 UTC · lore

Now that duplicates are elided early, there is no need for the SHOWN flag.

This patch removes the SHOWN flag and its uses from rev-list.c
Signed-off-by: Jon Seymour <jon.seymour@gmail>
---
 rev-list.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
28294b1e139ea3f7c08814e022246e42f9ab9fa3
Show changes to rev-list.c +1 −3
diff --git a/rev-list.c b/rev-list.c
--- a/rev-list.c
+++ b/rev-list.c
@@ -8,7 +8,6 @@
 #define SEEN		(1u << 0)
 #define INTERESTING	(1u << 1)
 #define COUNTED		(1u << 2)
-#define SHOWN		(1u << 3)
 
 static const char rev_list_usage[] =
 	"usage: git-rev-list [OPTION] commit-id <commit-id>\n"
@@ -42,7 +41,6 @@ static int topo_order = 0;
 
 static void show_commit(struct commit *commit)
 {
-	commit->object.flags |= SHOWN;
 	if (show_breaks) {
 		prefix = "| ";
 		if (commit->object.flags & DISCONTINUITY) {
@@ -72,7 +70,7 @@ static int filter_commit(struct commit *
 {
 	if (stop_traversal && (commit->object.flags & BOUNDARY))
 		return STOP;
-	if (commit->object.flags & (UNINTERESTING|SHOWN))
+	if (commit->object.flags & UNINTERESTING)
 		return CONTINUE;
 	if (min_age != -1 && (commit->date > min_age))
 		return CONTINUE;
------------

← back to recent threads