Thread (175 messages) flat view 175 messages, 9 authors, 12d ago

Re: [PATCH v14 7/8] history: create squashed commits without editing

From: Junio C Hamano <hidden>
Date: 2026-08-20 20:10:45

"Harald Nordgren via GitGitGadget" [off-list ref] writes:
+	/*
+	 * Allow "fixup! <hex object id>", but not "fixup! HEAD^" or
+	 * "fixup! main". If the target is not being squshed check the subject
+	 * to allow "fixup! abc123" and "fixup! <subject of abc123>" to be
+	 * squashed together.
+	 */
+	target = lookup_commit_reference_by_name(s);
+	if (target && istarts_with(oid_to_hex(&target->object.oid), s)) {
Why istarts_with()?  "fixup! ABCdef" should not be accepted, should it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help