Thread (140 messages) flat view 140 messages, 8 authors, 9h ago
HOTtoday

[PATCH v10 3.2/3.7] fixup! history: add squash subcommand to fold a range

From: Phillip Wood <hidden>
Date: 2026-08-03 09:50:42
Subsystem: the rest · Maintainer: Linus Torvalds

From: Phillip Wood <redacted>

Look for BOTTOM commit instead of an UNINTERESTING commit

There are a number of reasons why a commit may be marked as
UNINTERESTING, we are specifically interested in finding a BOTTOM commit
that marks the bottom of the commit range that is being squashed.

Signed-off-by: Phillip Wood <redacted>
---
 builtin/history.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/history.c b/builtin/history.c
index 1d6d934bbe..64c9914c2f 100644
--- a/builtin/history.c
+++ b/builtin/history.c
@@ -1066,7 +1066,7 @@ static int resolve_squash_range(struct repository *repo,
 	 * bottom commit cannot be squashed.
 	 */
 	for (i = 0; i < revs.cmdline.nr; i++)
-		if (revs.cmdline.rev[i].flags & UNINTERESTING)
+		if (revs.cmdline.rev[i].flags & BOTTOM)
 			break;
 	if (i == revs.cmdline.nr) {
 		ret = error(_("not a '<base>..<tip>' revision range"));
-- 
2.54.0.200.gfd8d68259e3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help