Skip to content

Commit dba4358

Browse files
committed
Merge 'ps/stash-in-c'
This merges the builtin stash. Upstream Git did not integrate it into any stable integration branch yet, but the performance improvements are substantial enough, especially on Windows, that we really, really, really want to have it early. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents e244526 + c82c409 commit dba4358

File tree

14 files changed

+1932
-72
lines changed

14 files changed

+1932
-72
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
/git-interpret-trailers
8383
/git-instaweb
8484
/git-legacy-rebase
85+
/git-legacy-stash
8586
/git-log
8687
/git-ls-files
8788
/git-ls-remote

Documentation/git-stash.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'git stash' list [<options>]
12-
'git stash' show [<stash>]
12+
'git stash' show [<options>] [<stash>]
1313
'git stash' drop [-q|--quiet] [<stash>]
1414
'git stash' ( pop | apply ) [--index] [-q|--quiet] [<stash>]
1515
'git stash' branch <branchname> [<stash>]
@@ -106,7 +106,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
106106
The command takes options applicable to the 'git log'
107107
command to control what is shown and how. See linkgit:git-log[1].
108108

109-
show [<stash>]::
109+
show [<options>] [<stash>]::
110110

111111
Show the changes recorded in the stash entry as a diff between the
112112
stashed contents and the commit back when the stash entry was first

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,9 @@ SCRIPT_SH += git-merge-resolve.sh
617617
SCRIPT_SH += git-mergetool.sh
618618
SCRIPT_SH += git-quiltimport.sh
619619
SCRIPT_SH += git-legacy-rebase.sh
620+
SCRIPT_SH += git-legacy-stash.sh
620621
SCRIPT_SH += git-remote-testgit.sh
621622
SCRIPT_SH += git-request-pull.sh
622-
SCRIPT_SH += git-stash.sh
623623
SCRIPT_SH += git-submodule.sh
624624
SCRIPT_SH += git-web--browse.sh
625625

@@ -1117,6 +1117,7 @@ BUILTIN_OBJS += builtin/shortlog.o
11171117
BUILTIN_OBJS += builtin/show-branch.o
11181118
BUILTIN_OBJS += builtin/show-index.o
11191119
BUILTIN_OBJS += builtin/show-ref.o
1120+
BUILTIN_OBJS += builtin/stash.o
11201121
BUILTIN_OBJS += builtin/stripspace.o
11211122
BUILTIN_OBJS += builtin/submodule--helper.o
11221123
BUILTIN_OBJS += builtin/symbolic-ref.o

builtin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ extern int cmd_show(int argc, const char **argv, const char *prefix);
225225
extern int cmd_show_branch(int argc, const char **argv, const char *prefix);
226226
extern int cmd_show_index(int argc, const char **argv, const char *prefix);
227227
extern int cmd_status(int argc, const char **argv, const char *prefix);
228+
extern int cmd_stash(int argc, const char **argv, const char *prefix);
228229
extern int cmd_stripspace(int argc, const char **argv, const char *prefix);
229230
extern int cmd_submodule__helper(int argc, const char **argv, const char *prefix);
230231
extern int cmd_symbolic_ref(int argc, const char **argv, const char *prefix);

0 commit comments

Comments
 (0)