summaryrefslogtreecommitdiff
path: root/git-legacy-rebase.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2018-12-11 16:11:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-12-28 20:49:48 (GMT)
commit899b49c446fa645419676899c9409e2975a5dd26 (patch)
tree3a4734b044de4415216995d48d398b71a36efac1 /git-legacy-rebase.sh
parent45339f74ef87123ab79831310bf8047cebe5177b (diff)
downloadgit-899b49c446fa645419676899c9409e2975a5dd26.zip
git-899b49c446fa645419676899c9409e2975a5dd26.tar.gz
git-899b49c446fa645419676899c9409e2975a5dd26.tar.bz2
git-rebase, sequencer: extend --quiet option for the interactive machinery
While 'quiet' and 'interactive' may sound like antonyms, the interactive machinery actually has logic that implements several interactive_rebase=implied cases (--exec, --keep-empty, --rebase-merges) which won't pop up an editor. The rewrite of interactive rebase in C added a quiet option, though it only turns stats off. Since we want to make the interactive machinery also take over for git-rebase--merge, it should fully implement the --quiet option. git-rebase--interactive was already somewhat quieter than git-rebase--merge and git-rebase--am, possibly because cherry-pick has just traditionally been quieter. As such, we only drop a few informational messages -- "Rebasing (n/m)" and "Successfully rebased..." Also, for simplicity, remove the differences in how quiet and verbose options were recorded. Having one be signalled by the presence of a "verbose" file in the state_dir, while the other was signalled by the contents of a "quiet" file was just weirdly inconsistent. (This inconsistency pre-dated the rewrite into C.) Make them consistent by having them both key off the presence of the file. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-legacy-rebase.sh')
-rwxr-xr-xgit-legacy-rebase.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-legacy-rebase.sh b/git-legacy-rebase.sh
index fccb33b..f4088b7 100755
--- a/git-legacy-rebase.sh
+++ b/git-legacy-rebase.sh
@@ -113,7 +113,7 @@ read_basic_state () {
else
orig_head=$(cat "$state_dir"/head)
fi &&
- GIT_QUIET=$(cat "$state_dir"/quiet) &&
+ test -f "$state_dir"/quiet && GIT_QUIET=t
test -f "$state_dir"/verbose && verbose=t
test -f "$state_dir"/strategy && strategy="$(cat "$state_dir"/strategy)"
test -f "$state_dir"/strategy_opts &&