Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-pull: Allow --stat and --no-stat to be used with --rebase
author
Tor Arne Vestbø
<torarnv@gmail.com>
Sun, 1 Mar 2009 21:28:28 +0000
(22:28 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 3 Mar 2009 07:22:54 +0000
(23:22 -0800)
Forwards the --stat, --no-stat, and --summary options on to git-rebase.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-pull.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a9c3821
)
diff --git
a/git-pull.sh
b/git-pull.sh
index 25adddfddfc0a7e2cc33ea0dc1e1d7a101514972..8a26763206dbd852aacb15db7f5319eb35678a29 100755
(executable)
--- a/
git-pull.sh
+++ b/
git-pull.sh
@@
-16,7
+16,7
@@
cd_to_toplevel
test -z "$(git ls-files -u)" ||
die "You are in the middle of a conflicted merge."
test -z "$(git ls-files -u)" ||
die "You are in the middle of a conflicted merge."
-strategy_args=
no_
stat= no_commit= squash= no_ff= log_arg= verbosity=
+strategy_args=
diff
stat= no_commit= squash= no_ff= log_arg= verbosity=
curr_branch=$(git symbolic-ref -q HEAD)
curr_branch_short=$(echo "$curr_branch" | sed "s|refs/heads/||")
rebase=$(git config --bool branch.$curr_branch_short.rebase)
curr_branch=$(git symbolic-ref -q HEAD)
curr_branch_short=$(echo "$curr_branch" | sed "s|refs/heads/||")
rebase=$(git config --bool branch.$curr_branch_short.rebase)
@@
-28,9
+28,9
@@
do
-v|--verbose)
verbosity="$verbosity -v" ;;
-n|--no-stat|--no-summary)
-v|--verbose)
verbosity="$verbosity -v" ;;
-n|--no-stat|--no-summary)
-
no_stat=-n
;;
+
diffstat=--no-stat
;;
--stat|--summary)
--stat|--summary)
-
no_stat=$1
;;
+
diffstat=--stat
;;
--log|--no-log)
log_arg=$1 ;;
--no-c|--no-co|--no-com|--no-comm|--no-commi|--no-commit)
--log|--no-log)
log_arg=$1 ;;
--no-c|--no-co|--no-com|--no-comm|--no-commi|--no-commit)
@@
-188,7
+188,7
@@
fi
merge_name=$(git fmt-merge-msg $log_arg <"$GIT_DIR/FETCH_HEAD") || exit
test true = "$rebase" &&
merge_name=$(git fmt-merge-msg $log_arg <"$GIT_DIR/FETCH_HEAD") || exit
test true = "$rebase" &&
- exec git-rebase $strategy_args --onto $merge_head \
+ exec git-rebase $
diffstat $
strategy_args --onto $merge_head \
${oldremoteref:-$merge_head}
${oldremoteref:-$merge_head}
-exec git-merge $
no_
stat $no_commit $squash $no_ff $log_arg $strategy_args \
+exec git-merge $
diff
stat $no_commit $squash $no_ff $log_arg $strategy_args \
"$merge_name" HEAD $merge_head $verbosity
"$merge_name" HEAD $merge_head $verbosity