cocci: apply the "commit.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "commit.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
cb338c23d6
commit
ecb5091fd4
@ -1611,7 +1611,8 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
|
||||
* Must first ensure that index matches HEAD before
|
||||
* attempting a trivial merge.
|
||||
*/
|
||||
struct tree *head_tree = get_commit_tree(head_commit);
|
||||
struct tree *head_tree = repo_get_commit_tree(the_repository,
|
||||
head_commit);
|
||||
struct strbuf sb = STRBUF_INIT;
|
||||
|
||||
if (repo_index_has_changes(the_repository, head_tree,
|
||||
|
||||
Reference in New Issue
Block a user