X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-cherry;h=fe8c1090e97faa0fd0a34c2a12d748916aaa6b05;hb=06ec2b4bb4ab9096d1304ba5a2ec388078dcdf7f;hp=e186363647e2dcf0ecd72efb3cd609dde6a672bf;hpb=f69714c38c6f3296a4bfba0d057e0f1605373f49;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