Commit 540b02f3b97baf2bc1d62210a23d522b5d73e5eb

Yoichi Nakayama 2021-10-22T23:21:22

Add TODO comment for emit a warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/revparse.c b/src/revparse.c
index 2815bcf..61e836a 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -240,6 +240,9 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, size_t ide
 			if (entry == NULL)
 				goto notfound;
 
+			/*
+			 * TODO: emit a warning (log for 'branch' only goes back to ...)
+			 */
 			git_oid_cpy(oid, git_reflog_entry_id_new(entry));
 		}
 	}