mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-19 12:01:05 -05:00
stash -p: respect the add.interactive.usebuiltin setting
As `git add` traditionally did not expose the `--patch=<mode>` modes via command-line options, `git stash` had to call `git add--interactive` directly. But this prevents the built-in `add -p` from kicking in, as `add--interactive` is the Perl script. So let's introduce support for an optional `<mode>` argument in `git add --patch[=<mode>]`, and use that in `git stash -p`, so that the built-in interactive add can do its job if configured. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
3
commit.h
3
commit.h
@@ -295,7 +295,8 @@ int delayed_reachability_test(struct shallow_info *si, int c);
|
||||
void prune_shallow(unsigned options);
|
||||
extern struct trace_key trace_shallow;
|
||||
|
||||
int interactive_add(int argc, const char **argv, const char *prefix, int patch);
|
||||
int interactive_add(int argc, const char **argv, const char *prefix,
|
||||
const char *patch_mode);
|
||||
int run_add_interactive(const char *revision, const char *patch_mode,
|
||||
const struct pathspec *pathspec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user