Skip to content

Commit eb29dc6

Browse files
authored
Merge pull request #1814 from dscho/builtin-stash-v8
Update the built-in stash to v8, and the built-in rebase -i to v7
2 parents c71186e + 12b5a71 commit eb29dc6

File tree

6 files changed

+409
-320
lines changed

6 files changed

+409
-320
lines changed

Documentation/git-stash.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ show [<options>] [<stash>]::
117117
You can use stash.showStat and/or stash.showPatch config variables
118118
to change the default behavior.
119119

120-
It accepts any option known to `git diff`, but acts different on
121-
`--quiet` option and exit with zero regardless of differences.
122-
123120
pop [--index] [-q|--quiet] [<stash>]::
124121

125122
Remove a single stashed state from the stash list and apply it

builtin/rebase--interactive.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ int cmd_rebase__interactive(int argc, const char **argv, const char *prefix)
206206
opts.allow_ff = 1;
207207
opts.allow_empty = 1;
208208

209+
if (argc == 1)
210+
usage_with_options(builtin_rebase_interactive_usage, options);
211+
209212
argc = parse_options(argc, argv, NULL, options,
210213
builtin_rebase_interactive_usage, PARSE_OPT_KEEP_ARGV0);
211214

@@ -223,6 +226,9 @@ int cmd_rebase__interactive(int argc, const char **argv, const char *prefix)
223226

224227
switch (command) {
225228
case NONE:
229+
if (!onto && !upstream)
230+
die(_("a base commit must be provided with --upstream or --onto"));
231+
226232
ret = do_interactive_rebase(&opts, flags, switch_to, upstream, onto,
227233
onto_name, squash_onto, head_name, restrict_revision,
228234
raw_strategies, cmd, autosquash);

0 commit comments

Comments
 (0)