mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'jc/logs' into next
* jc/logs: builtin-log/whatchanged/show: make them official.
This commit is contained in:
commit
064c5bceee
2 changed files with 3 additions and 34 deletions
9
Makefile
9
Makefile
|
@ -121,7 +121,7 @@ SCRIPT_SH = \
|
||||||
git-prune.sh git-pull.sh git-push.sh git-rebase.sh \
|
git-prune.sh git-pull.sh git-push.sh git-rebase.sh \
|
||||||
git-repack.sh git-request-pull.sh git-reset.sh \
|
git-repack.sh git-request-pull.sh git-reset.sh \
|
||||||
git-resolve.sh git-revert.sh git-rm.sh git-sh-setup.sh \
|
git-resolve.sh git-revert.sh git-rm.sh git-sh-setup.sh \
|
||||||
git-tag.sh git-verify-tag.sh git-whatchanged.sh \
|
git-tag.sh git-verify-tag.sh \
|
||||||
git-applymbox.sh git-applypatch.sh git-am.sh \
|
git-applymbox.sh git-applypatch.sh git-am.sh \
|
||||||
git-merge.sh git-merge-stupid.sh git-merge-octopus.sh \
|
git-merge.sh git-merge-stupid.sh git-merge-octopus.sh \
|
||||||
git-merge-resolve.sh git-merge-ours.sh git-grep.sh \
|
git-merge-resolve.sh git-merge-ours.sh git-grep.sh \
|
||||||
|
@ -139,7 +139,7 @@ SCRIPT_PYTHON = \
|
||||||
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
||||||
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
|
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
|
||||||
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
||||||
git-cherry-pick git-show git-status
|
git-cherry-pick git-status
|
||||||
|
|
||||||
# The ones that do not have to link with lcrypto, lz nor xdiff.
|
# The ones that do not have to link with lcrypto, lz nor xdiff.
|
||||||
SIMPLE_PROGRAMS = \
|
SIMPLE_PROGRAMS = \
|
||||||
|
@ -167,7 +167,7 @@ PROGRAMS = \
|
||||||
git-name-rev$X git-pack-redundant$X git-repo-config$X git-var$X \
|
git-name-rev$X git-pack-redundant$X git-repo-config$X git-var$X \
|
||||||
git-describe$X git-merge-tree$X git-blame$X git-imap-send$X
|
git-describe$X git-merge-tree$X git-blame$X git-imap-send$X
|
||||||
|
|
||||||
BUILT_INS = git-log$X \
|
BUILT_INS = git-log$X git-whatchanged$X git-show$X \
|
||||||
git-diff$X
|
git-diff$X
|
||||||
|
|
||||||
# what 'all' will build and 'install' will install, in gitexecdir
|
# what 'all' will build and 'install' will install, in gitexecdir
|
||||||
|
@ -507,9 +507,6 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
|
||||||
git-cherry-pick: git-revert
|
git-cherry-pick: git-revert
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
git-show: git-whatchanged
|
|
||||||
cp $< $@
|
|
||||||
|
|
||||||
git-status: git-commit
|
git-status: git-commit
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
USAGE='[-p] [--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [-m] [git-diff-tree options] [git-rev-list options]'
|
|
||||||
SUBDIRECTORY_OK='Yes'
|
|
||||||
. git-sh-setup
|
|
||||||
|
|
||||||
diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@") || exit
|
|
||||||
case "$0" in
|
|
||||||
*whatchanged)
|
|
||||||
count=
|
|
||||||
test -z "$diff_tree_flags" &&
|
|
||||||
diff_tree_flags=$(git-repo-config --get whatchanged.difftree)
|
|
||||||
diff_tree_default_flags='-c -M --abbrev' ;;
|
|
||||||
*show)
|
|
||||||
count=-n1
|
|
||||||
test -z "$diff_tree_flags" &&
|
|
||||||
diff_tree_flags=$(git-repo-config --get show.difftree)
|
|
||||||
diff_tree_default_flags='--cc --always' ;;
|
|
||||||
esac
|
|
||||||
test -z "$diff_tree_flags" &&
|
|
||||||
diff_tree_flags="$diff_tree_default_flags"
|
|
||||||
|
|
||||||
rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
|
|
||||||
diff_tree_args=$(git-rev-parse --sq --no-revs --no-flags "$@") &&
|
|
||||||
|
|
||||||
eval "git-rev-list $count $rev_list_args" |
|
|
||||||
eval "git-diff-tree --stdin --pretty -r $diff_tree_flags $diff_tree_args" |
|
|
||||||
LESS="$LESS -S" ${PAGER:-less}
|
|
Loading…
Reference in a new issue