PATH:
usr
/
libexec
/
git-core
#!/bin/sh # # Copyright (c) 2005 Linus Torvalds # Copyright (c) 2005 Junio C Hamano # # Resolve two trees, using enhanced multi-base read-tree. . git-sh-setup # Abort if index does not match HEAD if ! git diff-index --quiet --cached HEAD -- then gettextln "Error: Your local changes to the following files would be overwritten by merge" git diff-index --cached --name-only HEAD -- | sed -e 's/^/ /' exit 2 fi # The first parameters up to -- are merge bases; the rest are heads. bases= head= remotes= sep_seen= for arg do case ",$sep_seen,$head,$arg," in *,--,) sep_seen=yes ;; ,yes,,*) head=$arg ;; ,yes,*) remotes="$remotes$arg " ;; *) bases="$bases$arg " ;; esac done # Give up if we are given two or more remotes -- not handling octopus. case "$remotes" in ?*' '?*) exit 2 ;; esac # Give up if this is a baseless merge. if test '' = "$bases" then exit 2 fi git update-index -q --refresh git read-tree -u -m --aggressive $bases $head $remotes || exit 2 echo "Trying simple merge." if result_tree=$(git write-tree 2>/dev/null) then exit 0 else echo "Simple merge failed, trying Automatic merge." if git merge-index -o git-merge-one-file -a then exit 0 else exit 1 fi fi
[-] git-apply
[edit]
[-] git-fast-export
[edit]
[-] git-get-tar-commit-id
[edit]
[-] git-fast-import
[edit]
[-] git-merge-ours
[edit]
[-] git-fsck-objects
[edit]
[-] git-rev-parse
[edit]
[-] git-http-push
[edit]
[-] git-fsck
[edit]
[-] git-filter-branch
[edit]
[-] git-web--browse
[edit]
[-] git-bugreport
[edit]
[-] git-rebase
[edit]
[-] git-checkout--worker
[edit]
[-] git-rm
[edit]
[-] git-stage
[edit]
[-] git-send-pack
[edit]
[-] git-for-each-ref
[edit]
[-] git-merge-one-file
[edit]
[-] git-pack-redundant
[edit]
[-] git-remote-fd
[edit]
[-] git-mailinfo
[edit]
[-] git-fetch-pack
[edit]
[-] git-update-index
[edit]
[-] git-fmt-merge-msg
[edit]
[-] git-commit-tree
[edit]
[-] git-name-rev
[edit]
[-] git-for-each-repo
[edit]
[-] git-credential-netrc
[edit]
[-] git-help
[edit]
[-] git-index-pack
[edit]
[-] git-check-ignore
[edit]
[-] git-tag
[edit]
[-] git-shell
[edit]
[-] git-merge-resolve
[edit]
[-] git-show-branch
[edit]
[-] git-merge
[edit]
[-] git-submodule
[edit]
[-] git-replace
[edit]
[-] git-status
[edit]
[-] git-bisect
[edit]
[-] git-revert
[edit]
[-] git-difftool
[edit]
[-] git-quiltimport
[edit]
[-] git-check-attr
[edit]
[-] git-restore
[edit]
[-] git-unpack-objects
[edit]
[-] git-mv
[edit]
[-] git-var
[edit]
[-] git-show-index
[edit]
[-] git-push
[edit]
[-] git-unpack-file
[edit]
[-] git-reflog
[edit]
[-] git-config
[edit]
[-] git-diff-tree
[edit]
[-] git-cherry-pick
[edit]
[-] git-version
[edit]
[-] git-remote-ext
[edit]
[-] git-submodule--helper
[edit]
[-] git-credential
[edit]
[-] git-count-objects
[edit]
[-] git-merge-base
[edit]
[-] git
[edit]
[-] git-cherry
[edit]
[-] git-annotate
[edit]
[-] git-describe
[edit]
[-] git-ls-tree
[edit]
[-] git-fsmonitor--daemon
[edit]
[-] git-checkout-index
[edit]
[-] git-pack-refs
[edit]
[-] git-blame
[edit]
[-] git-remote-ftps
[edit]
[-] git-verify-commit
[edit]
[-] git-credential-store
[edit]
[-] git-init
[edit]
[-] git-update-server-info
[edit]
[-] git-request-pull
[edit]
[-] git-init-db
[edit]
[-] git-bundle
[edit]
[-] git-merge-recursive
[edit]
[-] git-repack
[edit]
[-] git-verify-pack
[edit]
[-] git-rerere
[edit]
[-] git-column
[edit]
[-] git-stripspace
[edit]
[+]
..
[-] git-hash-object
[edit]
[-] git-ls-remote
[edit]
[-] git-symbolic-ref
[edit]
[+]
mergetools
[-] git-diff-index
[edit]
[-] git-pull
[edit]
[-] git-write-tree
[edit]
[-] git-whatchanged
[edit]
[-] git-mergetool
[edit]
[-] git-http-fetch
[edit]
[-] git-update-ref
[edit]
[-] git-add
[edit]
[-] git-read-tree
[edit]
[-] git-prune-packed
[edit]
[-] git-check-mailmap
[edit]
[-] git-sh-setup
[edit]
[-] git-sh-i18n
[edit]
[-] git-show-ref
[edit]
[-] git-receive-pack
[edit]
[-] git-merge-file
[edit]
[-] git-mailsplit
[edit]
[-] git-range-diff
[edit]
[-] git-mktag
[edit]
[-] git-remote-ftp
[edit]
[-] git-merge-octopus
[edit]
[-] git-remote
[edit]
[-] git-format-patch
[edit]
[-] git-cat-file
[edit]
[-] git-stash
[edit]
[-] git-upload-archive
[edit]
[-] git-clone
[edit]
[-] git-interpret-trailers
[edit]
[-] git-grep
[edit]
[-] git-contacts
[edit]
[-] git-remote-https
[edit]
[-] git-show
[edit]
[-] git-archive
[edit]
[-] git-pack-objects
[edit]
[-] git-verify-tag
[edit]
[-] git-am
[edit]
[-] git-sh-i18n--envsubst
[edit]
[-] git-http-backend
[edit]
[-] git-clean
[edit]
[-] git-branch
[edit]
[-] git-merge-tree
[edit]
[-] scalar
[edit]
[-] git-credential-cache--daemon
[edit]
[-] git-checkout
[edit]
[-] git-worktree
[edit]
[-] git-mergetool--lib
[edit]
[-] git-fetch
[edit]
[-] git-merge-subtree
[edit]
[-] git-prune
[edit]
[-] git-mktree
[edit]
[-] git-notes
[edit]
[-] git-switch
[edit]
[-] git-merge-index
[edit]
[-] git-sparse-checkout
[edit]
[-] git-commit-graph
[edit]
[-] git-shortlog
[edit]
[-] git-maintenance
[edit]
[-] git-patch-id
[edit]
[-] git-upload-pack
[edit]
[-] git-multi-pack-index
[edit]
[-] git-remote-http
[edit]
[-] git-diff
[edit]
[-] git-diagnose
[edit]
[-] git-rev-list
[edit]
[-] git-gc
[edit]
[-] git-check-ref-format
[edit]
[-] git-diff-files
[edit]
[-] git-hook
[edit]
[-] git-reset
[edit]
[-] git-difftool--helper
[edit]
[-] git-imap-send
[edit]
[-] git-log
[edit]
[-] git-ls-files
[edit]
[-] git-commit
[edit]
[-] git-credential-cache
[edit]