Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/blame: convert static function to struct object_id
author
brian m. carlson
<sandals@crustytoothpaste.net>
Mon, 1 May 2017 02:29:01 +0000
(
02:29
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 2 May 2017 01:46:41 +0000
(10:46 +0900)
This function is a caller of lookup_commit_reference_gently, which we
will convert later.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
48713bf
)
diff --git
a/builtin/blame.c
b/builtin/blame.c
index 07506a3e457d1540acb7700e4677d715d6842735..7d644d092543c65b712eae0da6daed988e3f8d3c 100644
(file)
--- a/
builtin/blame.c
+++ b/
builtin/blame.c
@@
-2461,7
+2461,7
@@
static const char *dwim_reverse_initial(struct scoreboard *sb)
*/
struct object *obj;
struct commit *head_commit;
*/
struct object *obj;
struct commit *head_commit;
-
unsigned char head_sha1[20]
;
+
struct object_id head_oid
;
if (sb->revs->pending.nr != 1)
return NULL;
if (sb->revs->pending.nr != 1)
return NULL;
@@
-2473,9
+2473,9
@@
static const char *dwim_reverse_initial(struct scoreboard *sb)
return NULL;
/* Do we have HEAD? */
return NULL;
/* Do we have HEAD? */
- if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, head_
sha1
, NULL))
+ if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, head_
oid.hash
, NULL))
return NULL;
return NULL;
- head_commit = lookup_commit_reference_gently(head_
sha1
, 1);
+ head_commit = lookup_commit_reference_gently(head_
oid.hash
, 1);
if (!head_commit)
return NULL;
if (!head_commit)
return NULL;