summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2022-07-23 01:53:15 +0000
committerJunio C Hamano <gitster@pobox.com>2022-07-22 21:45:23 -0700
commit1369f1475b998b0022f9bdf3a084ef6e590800aa (patch)
tree5f3a52677ecca8fa030cf3c09a5c156b2da03717 /commit.h
parent8f240b8bbb63591f15c10e43debaf564e63a66bd (diff)
merge: fix save_state() to work when there are stat-dirty files
When there are stat-dirty files, but no files are modified, `git stash create` exits with unsuccessful status. This causes merge to fail. Copy some code from sequencer.c's create_autostash to refresh the index first to avoid this problem. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions