astral-dev-toolchain-git 2.56.1__py3-none-win_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-archimport +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-cvsexportcommit +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-cvsimport +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-cvsserver +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-daemon.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-difftool--helper +125 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-filter-branch +665 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-http-backend.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-http-fetch.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-http-push.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-imap-send.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-instaweb +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-merge-octopus +112 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-merge-one-file +167 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-merge-resolve +64 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-mergetool +579 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-mergetool--lib +549 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-p4 +4628 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-quiltimport +155 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-remote-ftp.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-remote-ftps.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-remote-http.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-remote-https.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-request-pull +178 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-send-email +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-sh-i18n +79 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-sh-i18n--envsubst.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-sh-setup +357 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-shell.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-submodule +671 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-svn +4 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git-web--browse +196 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/git.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/headless-git.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/araxis +26 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/bc +37 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/codecompare +31 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/deltawalker +33 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/diffmerge +26 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/diffuse +23 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/ecmerge +22 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/emerge +34 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/examdiff +24 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/guiffy +26 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/gvimdiff +1 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/kdiff3 +44 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/kompare +19 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/meld +97 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/nvimdiff +1 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/opendiff +22 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/p4merge +44 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/smerge +20 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/tkdiff +24 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/tortoisemerge +40 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/vimdiff +657 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/vscode +19 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/winmerge +23 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/mergetools/xxdiff +38 -0
- astral_dev_toolchain_git-2.56.1.data/data/libexec/git-core/scalar.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/bash-completion/completions/git +4115 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/curl/COPYING +22 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/expat/COPYING +21 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/git/COPYING +360 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/libiconv/COPYING.LIB +501 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/pcre2/LICENCE.md +104 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/doc/git/licenses/zlib/LICENSE +22 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/description +1 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/applypatch-msg.sample +15 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/commit-msg.sample +74 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/fsmonitor-watchman.sample +168 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/post-update.sample +8 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-applypatch.sample +14 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-commit.sample +49 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-merge-commit.sample +13 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-push.sample +53 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-rebase.sample +169 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/pre-receive.sample +24 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/prepare-commit-msg.sample +42 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/push-to-checkout.sample +78 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/sendemail-validate.sample +77 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/hooks/update.sample +128 -0
- astral_dev_toolchain_git-2.56.1.data/data/share/git-core/templates/info/exclude +6 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git-cvsserver +4 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git-receive-pack.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git-shell.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git-upload-archive.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git-upload-pack.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/git.exe +0 -0
- astral_dev_toolchain_git-2.56.1.data/scripts/scalar.exe +0 -0
- astral_dev_toolchain_git-2.56.1.dist-info/METADATA +18 -0
- astral_dev_toolchain_git-2.56.1.dist-info/RECORD +98 -0
- astral_dev_toolchain_git-2.56.1.dist-info/WHEEL +4 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/curl/COPYING +22 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/expat/COPYING +21 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/git/COPYING +360 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/libiconv/COPYING.LIB +501 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/pcre2/LICENCE.md +104 -0
- astral_dev_toolchain_git-2.56.1.dist-info/licenses/zlib/LICENSE +22 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
OPTIONS_KEEPDASHDASH=
|
|
3
|
+
OPTIONS_STUCKLONG=
|
|
4
|
+
OPTIONS_SPEC="\
|
|
5
|
+
git quiltimport [options]
|
|
6
|
+
--
|
|
7
|
+
n,dry-run dry run
|
|
8
|
+
author= author name and email address for patches without any
|
|
9
|
+
patches= path to the quilt patches
|
|
10
|
+
series= path to the quilt series file
|
|
11
|
+
keep-non-patch Pass -b to git mailinfo
|
|
12
|
+
"
|
|
13
|
+
SUBDIRECTORY_ON=Yes
|
|
14
|
+
. git-sh-setup
|
|
15
|
+
|
|
16
|
+
dry_run=""
|
|
17
|
+
quilt_author=""
|
|
18
|
+
while test $# != 0
|
|
19
|
+
do
|
|
20
|
+
case "$1" in
|
|
21
|
+
--author)
|
|
22
|
+
shift
|
|
23
|
+
quilt_author="$1"
|
|
24
|
+
;;
|
|
25
|
+
-n|--dry-run)
|
|
26
|
+
dry_run=1
|
|
27
|
+
;;
|
|
28
|
+
--patches)
|
|
29
|
+
shift
|
|
30
|
+
QUILT_PATCHES="$1"
|
|
31
|
+
;;
|
|
32
|
+
--series)
|
|
33
|
+
shift
|
|
34
|
+
QUILT_SERIES="$1"
|
|
35
|
+
;;
|
|
36
|
+
--keep-non-patch)
|
|
37
|
+
MAILINFO_OPT="-b"
|
|
38
|
+
;;
|
|
39
|
+
--)
|
|
40
|
+
shift
|
|
41
|
+
break;;
|
|
42
|
+
*)
|
|
43
|
+
usage
|
|
44
|
+
;;
|
|
45
|
+
esac
|
|
46
|
+
shift
|
|
47
|
+
done
|
|
48
|
+
|
|
49
|
+
# Quilt Author
|
|
50
|
+
if [ -n "$quilt_author" ] ; then
|
|
51
|
+
quilt_author_name=$(expr "z$quilt_author" : 'z\(.*[^ ]\) *<.*') &&
|
|
52
|
+
quilt_author_email=$(expr "z$quilt_author" : '.*<\([^>]*\)') &&
|
|
53
|
+
test '' != "$quilt_author_name" &&
|
|
54
|
+
test '' != "$quilt_author_email" ||
|
|
55
|
+
die "malformed --author parameter"
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
# Quilt patch directory
|
|
59
|
+
: ${QUILT_PATCHES:=patches}
|
|
60
|
+
if ! [ -d "$QUILT_PATCHES" ] ; then
|
|
61
|
+
echo "The \"$QUILT_PATCHES\" directory does not exist."
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
|
|
65
|
+
# Quilt series file
|
|
66
|
+
: ${QUILT_SERIES:=$QUILT_PATCHES/series}
|
|
67
|
+
if ! [ -e "$QUILT_SERIES" ] ; then
|
|
68
|
+
echo "The \"$QUILT_SERIES\" file does not exist."
|
|
69
|
+
exit 1
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
# Temporary directories
|
|
73
|
+
tmp_dir="$GIT_DIR"/rebase-apply
|
|
74
|
+
tmp_msg="$tmp_dir/msg"
|
|
75
|
+
tmp_patch="$tmp_dir/patch"
|
|
76
|
+
tmp_info="$tmp_dir/info"
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Find the initial commit
|
|
80
|
+
commit=$(git rev-parse HEAD)
|
|
81
|
+
|
|
82
|
+
mkdir $tmp_dir || exit 2
|
|
83
|
+
while read patch_name level garbage <&3
|
|
84
|
+
do
|
|
85
|
+
case "$patch_name" in ''|'#'*) continue;; esac
|
|
86
|
+
case "$level" in
|
|
87
|
+
-p*) ;;
|
|
88
|
+
''|'#'*)
|
|
89
|
+
level=;;
|
|
90
|
+
*)
|
|
91
|
+
echo "unable to parse patch level, ignoring it."
|
|
92
|
+
level=;;
|
|
93
|
+
esac
|
|
94
|
+
case "$garbage" in
|
|
95
|
+
''|'#'*);;
|
|
96
|
+
*)
|
|
97
|
+
echo "trailing garbage found in series file: $garbage"
|
|
98
|
+
exit 1;;
|
|
99
|
+
esac
|
|
100
|
+
if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
|
|
101
|
+
echo "$patch_name doesn't exist. Skipping."
|
|
102
|
+
continue
|
|
103
|
+
fi
|
|
104
|
+
echo $patch_name
|
|
105
|
+
git mailinfo $MAILINFO_OPT "$tmp_msg" "$tmp_patch" \
|
|
106
|
+
<"$QUILT_PATCHES/$patch_name" >"$tmp_info" || exit 3
|
|
107
|
+
test -s "$tmp_patch" || {
|
|
108
|
+
echo "Patch is empty. Was it split wrong?"
|
|
109
|
+
exit 1
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
# Parse the author information
|
|
113
|
+
GIT_AUTHOR_NAME=$(sed -ne 's/Author: //p' "$tmp_info")
|
|
114
|
+
GIT_AUTHOR_EMAIL=$(sed -ne 's/Email: //p' "$tmp_info")
|
|
115
|
+
export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL
|
|
116
|
+
while test -z "$GIT_AUTHOR_EMAIL" && test -z "$GIT_AUTHOR_NAME" ; do
|
|
117
|
+
if [ -n "$quilt_author" ] ; then
|
|
118
|
+
GIT_AUTHOR_NAME="$quilt_author_name";
|
|
119
|
+
GIT_AUTHOR_EMAIL="$quilt_author_email";
|
|
120
|
+
elif [ -n "$dry_run" ]; then
|
|
121
|
+
echo "No author found in $patch_name" >&2;
|
|
122
|
+
GIT_AUTHOR_NAME="dry-run-not-found";
|
|
123
|
+
GIT_AUTHOR_EMAIL="dry-run-not-found";
|
|
124
|
+
else
|
|
125
|
+
echo "No author found in $patch_name" >&2;
|
|
126
|
+
echo "---"
|
|
127
|
+
cat $tmp_msg
|
|
128
|
+
printf "Author: ";
|
|
129
|
+
read patch_author
|
|
130
|
+
|
|
131
|
+
echo "$patch_author"
|
|
132
|
+
|
|
133
|
+
patch_author_name=$(expr "z$patch_author" : 'z\(.*[^ ]\) *<.*') &&
|
|
134
|
+
patch_author_email=$(expr "z$patch_author" : '.*<\([^>]*\)') &&
|
|
135
|
+
test '' != "$patch_author_name" &&
|
|
136
|
+
test '' != "$patch_author_email" &&
|
|
137
|
+
GIT_AUTHOR_NAME="$patch_author_name" &&
|
|
138
|
+
GIT_AUTHOR_EMAIL="$patch_author_email"
|
|
139
|
+
fi
|
|
140
|
+
done
|
|
141
|
+
GIT_AUTHOR_DATE=$(sed -ne 's/Date: //p' "$tmp_info")
|
|
142
|
+
SUBJECT=$(sed -ne 's/Subject: //p' "$tmp_info")
|
|
143
|
+
export GIT_AUTHOR_DATE SUBJECT
|
|
144
|
+
if [ -z "$SUBJECT" ] ; then
|
|
145
|
+
SUBJECT=$(echo $patch_name | sed -e 's/.patch$//')
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
if [ -z "$dry_run" ] ; then
|
|
149
|
+
git apply --index -C1 ${level:+"$level"} "$tmp_patch" &&
|
|
150
|
+
tree=$(git write-tree) &&
|
|
151
|
+
commit=$( { echo "$SUBJECT"; echo; cat "$tmp_msg"; } | git commit-tree $tree -p $commit) &&
|
|
152
|
+
git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
|
|
153
|
+
fi
|
|
154
|
+
done 3<"$QUILT_SERIES"
|
|
155
|
+
rm -rf $tmp_dir || exit 5
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Copyright 2005, Ryan Anderson <ryan@michonline.com>
|
|
3
|
+
#
|
|
4
|
+
# This file is licensed under the GPL v2, or a later version
|
|
5
|
+
# at the discretion of Linus Torvalds.
|
|
6
|
+
|
|
7
|
+
SUBDIRECTORY_OK='Yes'
|
|
8
|
+
OPTIONS_KEEPDASHDASH=
|
|
9
|
+
OPTIONS_STUCKLONG=
|
|
10
|
+
OPTIONS_SPEC='git request-pull [options] start url [end]
|
|
11
|
+
--
|
|
12
|
+
p show patch text as well
|
|
13
|
+
'
|
|
14
|
+
|
|
15
|
+
. git-sh-setup
|
|
16
|
+
|
|
17
|
+
GIT_PAGER=
|
|
18
|
+
export GIT_PAGER
|
|
19
|
+
|
|
20
|
+
patch=
|
|
21
|
+
while case "$#" in 0) break ;; esac
|
|
22
|
+
do
|
|
23
|
+
case "$1" in
|
|
24
|
+
-p)
|
|
25
|
+
patch=-p ;;
|
|
26
|
+
--)
|
|
27
|
+
shift; break ;;
|
|
28
|
+
-*)
|
|
29
|
+
usage ;;
|
|
30
|
+
*)
|
|
31
|
+
break ;;
|
|
32
|
+
esac
|
|
33
|
+
shift
|
|
34
|
+
done
|
|
35
|
+
|
|
36
|
+
base=$1 url=$2 status=0
|
|
37
|
+
|
|
38
|
+
test -n "$base" && test -n "$url" || usage
|
|
39
|
+
|
|
40
|
+
baserev=$(git rev-parse --verify --quiet "$base"^0)
|
|
41
|
+
if test -z "$baserev"
|
|
42
|
+
then
|
|
43
|
+
die "fatal: Not a valid revision: $base"
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# $3 must be a symbolic ref, a unique ref, or
|
|
48
|
+
# a SHA object expression. It can also be of
|
|
49
|
+
# the format 'local-name:remote-name'.
|
|
50
|
+
#
|
|
51
|
+
local=${3%:*}
|
|
52
|
+
local=${local:-HEAD}
|
|
53
|
+
remote=${3#*:}
|
|
54
|
+
pretty_remote=${remote#refs/}
|
|
55
|
+
pretty_remote=${pretty_remote#heads/}
|
|
56
|
+
head=$(git symbolic-ref -q "$local")
|
|
57
|
+
head=${head:-$(git show-ref --heads --tags "$local" | cut -d' ' -f2)}
|
|
58
|
+
head=${head:-$(git rev-parse --quiet --verify "$local")}
|
|
59
|
+
|
|
60
|
+
# None of the above? Bad.
|
|
61
|
+
test -z "$head" && die "fatal: Not a valid revision: $local"
|
|
62
|
+
|
|
63
|
+
# This also verifies that the resulting head is unique:
|
|
64
|
+
# "git show-ref" could have shown multiple matching refs..
|
|
65
|
+
headrev=$(git rev-parse --verify --quiet "$head"^0)
|
|
66
|
+
test -z "$headrev" && die "fatal: Ambiguous revision: $local"
|
|
67
|
+
|
|
68
|
+
local_sha1=$(git rev-parse --verify --quiet "$head")
|
|
69
|
+
|
|
70
|
+
# Was it a branch with a description?
|
|
71
|
+
branch_name=${head#refs/heads/}
|
|
72
|
+
if test "z$branch_name" = "z$headref" ||
|
|
73
|
+
! git config "branch.$branch_name.description" >/dev/null
|
|
74
|
+
then
|
|
75
|
+
branch_name=
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
merge_base=$(git merge-base $baserev $headrev) ||
|
|
79
|
+
die "fatal: No commits in common between $base and $head"
|
|
80
|
+
|
|
81
|
+
find_matching_ref () {
|
|
82
|
+
while read sha1 ref
|
|
83
|
+
do
|
|
84
|
+
case "$ref" in
|
|
85
|
+
*"^"?*)
|
|
86
|
+
ref="${ref%"^"*}"
|
|
87
|
+
deref=true
|
|
88
|
+
;;
|
|
89
|
+
*)
|
|
90
|
+
deref=
|
|
91
|
+
;;
|
|
92
|
+
esac
|
|
93
|
+
|
|
94
|
+
if test "$sha1" = "${remote:-HEAD}"
|
|
95
|
+
then
|
|
96
|
+
echo "$sha1 $sha1"
|
|
97
|
+
break
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
case "$ref" in
|
|
101
|
+
"${remote:-HEAD}"|*"/${remote:-HEAD}")
|
|
102
|
+
if test -z "$deref"
|
|
103
|
+
then
|
|
104
|
+
# Remember the matching unpeeled object on the
|
|
105
|
+
# remote side.
|
|
106
|
+
remote_sha1="$sha1"
|
|
107
|
+
fi
|
|
108
|
+
|
|
109
|
+
if test "$sha1" = "$headrev"
|
|
110
|
+
then
|
|
111
|
+
echo "${remote_sha1:-$headrev} $ref"
|
|
112
|
+
break
|
|
113
|
+
fi
|
|
114
|
+
;;
|
|
115
|
+
esac
|
|
116
|
+
done
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
# Find a ref with the same name as $remote that exists at the remote
|
|
120
|
+
# and points to the same commit as the local object.
|
|
121
|
+
set fnord $(git ls-remote "$url" | find_matching_ref)
|
|
122
|
+
remote_sha1=$2
|
|
123
|
+
ref=$3
|
|
124
|
+
|
|
125
|
+
if test -z "$ref"
|
|
126
|
+
then
|
|
127
|
+
echo "warn: No match for commit $headrev found at $url" >&2
|
|
128
|
+
echo "warn: Are you sure you pushed '${remote:-HEAD}' there?" >&2
|
|
129
|
+
status=1
|
|
130
|
+
elif test "$local_sha1" != "$remote_sha1"
|
|
131
|
+
then
|
|
132
|
+
echo "warn: $head found at $url but points to a different object" >&2
|
|
133
|
+
echo "warn: Are you sure you pushed '${remote:-HEAD}' there?" >&2
|
|
134
|
+
status=1
|
|
135
|
+
fi
|
|
136
|
+
|
|
137
|
+
# Special case: turn "for_linus" to "tags/for_linus" when it is correct
|
|
138
|
+
if test "$ref" = "refs/tags/$pretty_remote"
|
|
139
|
+
then
|
|
140
|
+
pretty_remote=tags/$pretty_remote
|
|
141
|
+
fi
|
|
142
|
+
|
|
143
|
+
url=$(git ls-remote --get-url "$url")
|
|
144
|
+
|
|
145
|
+
git show -s --format='The following changes since commit %H:
|
|
146
|
+
|
|
147
|
+
%s (%ci)
|
|
148
|
+
|
|
149
|
+
are available in the Git repository at:
|
|
150
|
+
' $merge_base &&
|
|
151
|
+
echo " $url $pretty_remote" &&
|
|
152
|
+
git show -s --format='
|
|
153
|
+
for you to fetch changes up to %H:
|
|
154
|
+
|
|
155
|
+
%s (%ci)
|
|
156
|
+
|
|
157
|
+
----------------------------------------------------------------' $headrev &&
|
|
158
|
+
|
|
159
|
+
if test $(git cat-file -t "$head") = tag
|
|
160
|
+
then
|
|
161
|
+
git cat-file tag "$head" |
|
|
162
|
+
sed -n -e '1,/^$/d' -e '/^-----BEGIN \(PGP\|SSH\|SIGNED\) /q' -e p
|
|
163
|
+
echo
|
|
164
|
+
echo "----------------------------------------------------------------"
|
|
165
|
+
fi &&
|
|
166
|
+
|
|
167
|
+
if test -n "$branch_name"
|
|
168
|
+
then
|
|
169
|
+
echo "(from the branch description for $branch_name local branch)"
|
|
170
|
+
echo
|
|
171
|
+
git config "branch.$branch_name.description"
|
|
172
|
+
echo "----------------------------------------------------------------"
|
|
173
|
+
fi &&
|
|
174
|
+
|
|
175
|
+
git shortlog ^$baserev $headrev &&
|
|
176
|
+
git diff -M --stat --summary $patch $merge_base..$headrev || status=1
|
|
177
|
+
|
|
178
|
+
exit $status
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# This shell library is Git's interface to gettext.sh. See po/README
|
|
2
|
+
# for usage instructions.
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
# Export the TEXTDOMAIN* data that we need for Git
|
|
8
|
+
TEXTDOMAIN=git
|
|
9
|
+
export TEXTDOMAIN
|
|
10
|
+
if test -z "$GIT_TEXTDOMAINDIR"
|
|
11
|
+
then
|
|
12
|
+
TEXTDOMAINDIR="//share/locale"
|
|
13
|
+
else
|
|
14
|
+
TEXTDOMAINDIR="$GIT_TEXTDOMAINDIR"
|
|
15
|
+
fi
|
|
16
|
+
export TEXTDOMAINDIR
|
|
17
|
+
|
|
18
|
+
# First decide what scheme to use...
|
|
19
|
+
GIT_INTERNAL_GETTEXT_SH_SCHEME=fallthrough
|
|
20
|
+
if test -n "fallthrough"
|
|
21
|
+
then
|
|
22
|
+
GIT_INTERNAL_GETTEXT_SH_SCHEME="fallthrough"
|
|
23
|
+
elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS"
|
|
24
|
+
then
|
|
25
|
+
: no probing necessary
|
|
26
|
+
elif type gettext.sh >/dev/null 2>&1
|
|
27
|
+
then
|
|
28
|
+
# GNU libintl's gettext.sh
|
|
29
|
+
GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu
|
|
30
|
+
elif test "$(gettext -h 2>&1)" = "-h"
|
|
31
|
+
then
|
|
32
|
+
# gettext binary exists but no gettext.sh. likely to be a gettext
|
|
33
|
+
# binary on a Solaris or something that is not GNU libintl and
|
|
34
|
+
# lack eval_gettext.
|
|
35
|
+
GIT_INTERNAL_GETTEXT_SH_SCHEME=gettext_without_eval_gettext
|
|
36
|
+
fi
|
|
37
|
+
export GIT_INTERNAL_GETTEXT_SH_SCHEME
|
|
38
|
+
|
|
39
|
+
# ... and then follow that decision.
|
|
40
|
+
case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in
|
|
41
|
+
gnu)
|
|
42
|
+
# Use libintl's gettext.sh, or fall back to English if we can't.
|
|
43
|
+
. gettext.sh
|
|
44
|
+
;;
|
|
45
|
+
gettext_without_eval_gettext)
|
|
46
|
+
# Solaris has a gettext(1) but no eval_gettext(1)
|
|
47
|
+
eval_gettext () {
|
|
48
|
+
gettext "$1" | (
|
|
49
|
+
export PATH $(git sh-i18n--envsubst --variables "$1");
|
|
50
|
+
git sh-i18n--envsubst "$1"
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
;;
|
|
55
|
+
*)
|
|
56
|
+
gettext () {
|
|
57
|
+
printf "%s" "$1"
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
eval_gettext () {
|
|
61
|
+
printf "%s" "$1" | (
|
|
62
|
+
export PATH $(git sh-i18n--envsubst --variables "$1");
|
|
63
|
+
git sh-i18n--envsubst "$1"
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
;;
|
|
68
|
+
esac
|
|
69
|
+
|
|
70
|
+
# Git-specific wrapper functions
|
|
71
|
+
gettextln () {
|
|
72
|
+
gettext "$1"
|
|
73
|
+
echo
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
eval_gettextln () {
|
|
77
|
+
eval_gettext "$1"
|
|
78
|
+
echo
|
|
79
|
+
}
|