2005-04-18 23:15:10 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2005-07-08 21:57:21 +04:00
|
|
|
. git-sh-setup-script || die "Not a git archive"
|
|
|
|
|
2005-04-18 23:15:10 +04:00
|
|
|
merge_repo=$1
|
2005-05-26 01:05:13 +04:00
|
|
|
|
|
|
|
merge_name=$(echo "$1" | sed 's:\.git/*$::')
|
|
|
|
merge_head=HEAD
|
2005-06-28 07:10:32 +04:00
|
|
|
type=head
|
|
|
|
if [ "$2" = "tag" ]; then
|
|
|
|
type=tag
|
|
|
|
shift
|
|
|
|
fi
|
2005-05-26 01:05:13 +04:00
|
|
|
if [ "$2" ]
|
|
|
|
then
|
2005-06-28 07:10:32 +04:00
|
|
|
merge_name="$type '$2' of $merge_name"
|
2005-06-28 21:15:10 +04:00
|
|
|
merge_head="refs/${type}s/$2"
|
2005-05-26 01:05:13 +04:00
|
|
|
fi
|
2005-04-18 23:15:10 +04:00
|
|
|
|
2005-06-07 04:40:22 +04:00
|
|
|
git-fetch-script "$merge_repo" "$merge_head" || exit 1
|
2005-04-18 23:15:10 +04:00
|
|
|
|
2005-05-10 09:57:58 +04:00
|
|
|
git-resolve-script \
|
|
|
|
"$(cat "$GIT_DIR"/HEAD)" \
|
2005-06-22 01:04:13 +04:00
|
|
|
"$(cat "$GIT_DIR"/FETCH_HEAD)" \
|
2005-07-09 04:38:44 +04:00
|
|
|
"Merge $merge_name"
|