Commit a9a46275faef71f0a27cb4250e6a3169259bf21f

Stefan Sperling 2018-12-22T12:52:21

show IDs of commits being compared in 'got diff'

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index b4d4bc1..f60c8a4 100644
--- a/got/got.c
+++ b/got/got.c
@@ -685,6 +685,8 @@ cmd_diff(int argc, char *argv[])
 		    diff_context, repo, stdout);
 		break;
 	case GOT_OBJ_TYPE_COMMIT:
+		printf("diff: %s %s\n", obj_id_str1 ? obj_id_str1 : "/dev/null",
+		    obj_id_str2);
 		error = got_diff_objects_as_commits(obj1, obj2, diff_context,
 		    repo, stdout);
 		break;