X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-cherry;h=fe8c1090e97faa0fd0a34c2a12d748916aaa6b05;hb=78938b0d8a95b09d94af214fdb6b5f053a5edb98;hp=e186363647e2dcf0ecd72efb3cd609dde6a672bf;hpb=b30245c8e92ecaf8fb877189d7620a5a9a205120;p=git.git diff --git a/git-cherry b/git-cherry index e1863636..fe8c1090 100755 --- a/git-cherry +++ b/git-cherry @@ -14,19 +14,9 @@ usage="usage: $0 "'[-v] [] Each commit between the fork-point and is examined, and compared against the change each commit between the fork-point and - introduces. If the change does not seem to be in the -upstream, it is shown on the standard output. - -The output is intended to be used as: - - OLD_HEAD=$(git-rev-parse HEAD) - git-rev-parse upstream >${GIT_DIR-.}/HEAD - git-cherry upstream $OLD_HEAD | - while read commit - do - GIT_EXTERNAL_DIFF=git-apply-patch-script git-diff-tree -p "$commit" && - git-commit-script -C "$commit" - done + introduces. If the change seems to be in the upstream, +it is shown on the standard output with prefix "+". Otherwise +it is shown with prefix "-". ' case "$1" in -v) verbose=t; shift ;; esac