]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: make apply_autostash() accept a path
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Apr 2020 14:27:56 +0000 (10:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Apr 2020 16:28:02 +0000 (09:28 -0700)
commitbe1bb600da13523dd2d63ae93432d7f3b16ffb74
treef8562f408b8bb1e617d3b4be36db6b1b511568fc
parentefcf6cf0492c4a78d968c6246698d9aafae61578
sequencer: make apply_autostash() accept a path

In order to make apply_autostash() more generic for future extraction, make
it accept a `path` argument so that the location from where to read the
reference to the autostash commit can be customized. Remove the `opts`
argument since it was unused before anyway.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c