diff options
| author | Austin Clements <austin@google.com> | 2015-11-05 16:02:35 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-11-11 00:38:01 +0000 |
| commit | 7cc8d7720ed2e3ca6aba0cea191b9e19690dc9f7 (patch) | |
| tree | f44204abf453f4c17c7f8e9ea6c6411d433983f0 /git-codereview/branch.go | |
| parent | a993a2d94a08a2ae58d984e48613d4ff387adf57 (diff) | |
| download | go-x-review-7cc8d7720ed2e3ca6aba0cea191b9e19690dc9f7.tar.xz | |
git-codereview: add interactive mode to submit
This adds a -i option to submit that brings up a list of commits to
submit in an editor (a la git rebase -i), lets the user edit the list,
and then submits the specified commits in the specified order.
Change-Id: I88149140527c987ae856aac2598f0a992fe5654d
Reviewed-on: https://go-review.googlesource.com/16677
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'git-codereview/branch.go')
| -rw-r--r-- | git-codereview/branch.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-codereview/branch.go b/git-codereview/branch.go index 5eacb10..b451507 100644 --- a/git-codereview/branch.go +++ b/git-codereview/branch.go @@ -344,7 +344,11 @@ func (b *Branch) DefaultCommit(action string) *Commit { for _, c := range work { fmt.Fprintf(&buf, "\n\t%s %s", c.ShortHash, c.Subject) } - dief("cannot %s: multiple changes pending; must specify commit hash on command line:%s", action, buf.String()) + extra := "" + if action == "submit" { + extra = " or use submit -i" + } + dief("cannot %s: multiple changes pending; must specify commit hash on command line%s:%s", action, extra, buf.String()) } return work[0] } |
