Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH] patch-ids: check modified paths before calculating diff

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:20

Jonathan Nieder [off-list ref] writes:
quoted
@@ -64,6 +199,13 @@ static struct patch_id *add_commit(struct commit *commit,
 	unsigned char sha1[20];
 	int pos;
 
+	if (no_add) {
+		if (collect_touched_paths(commit, ids, 1) < 0)
+			return NULL;
Ah, so this is what the "searching" does.

The existing "no_add" argument is very confusing (what does it mean to
add a commit without adding?),
Such a mode of operation is usually called "dry-run", no?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help