diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-05-30 10:30:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-02 09:36:06 +0900 |
commit | bb7e4739712e3f9eee0dfd60088b6d8983067960 (patch) | |
tree | a6f1b9377836b010f44c4442ffb13a0afb584752 /builtin/commit.c | |
parent | fb61e4d3abe2349eb0fabe0be8981626b4074fa7 (diff) | |
download | git-bb7e4739712e3f9eee0dfd60088b6d8983067960.tar.gz |
builtin/notes: convert to struct object_id
Convert most of the static functions to use struct object_id. In
addition, convert copy_notes_for_rewrite and its callers.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index da1ba4c862..7587810045 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1809,7 +1809,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix) cfg = init_copy_notes_for_rewrite("amend"); if (cfg) { /* we are amending, so current_head is not NULL */ - copy_note_for_rewrite(cfg, current_head->object.oid.hash, oid.hash); + copy_note_for_rewrite(cfg, ¤t_head->object.oid, &oid); finish_copy_notes_for_rewrite(cfg, "Notes added by 'git commit --amend'"); } run_rewrite_hook(¤t_head->object.oid, &oid); |