@ai-ecoverse/wasm-git 2.55.0-2 → 2.55.0-4

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.
Files changed (54) hide show
  1. package/bin/git +1 -1
  2. package/bin/git-receive-pack +1 -0
  3. package/bin/git-receive-pack.wasm +0 -0
  4. package/bin/git-remote-http +1 -1
  5. package/bin/git-remote-http.wasm +0 -0
  6. package/bin/git-remote-https +1 -1
  7. package/bin/git-remote-https.wasm +0 -0
  8. package/bin/git-upload-pack +1 -0
  9. package/bin/git-upload-pack.wasm +0 -0
  10. package/bin/git.wasm +0 -0
  11. package/libexec/git-core/git-bundle +1 -1
  12. package/libexec/git-core/git-difftool--helper +125 -0
  13. package/libexec/git-core/git-fetch-pack +1 -1
  14. package/libexec/git-core/git-filter-branch +665 -0
  15. package/libexec/git-core/git-index-pack +1 -1
  16. package/libexec/git-core/git-merge-octopus +112 -0
  17. package/libexec/git-core/git-merge-one-file +167 -0
  18. package/libexec/git-core/git-merge-resolve +64 -0
  19. package/libexec/git-core/git-mergetool +579 -0
  20. package/libexec/git-core/git-mergetool--lib +549 -0
  21. package/libexec/git-core/git-pack-objects +1 -1
  22. package/libexec/git-core/git-quiltimport +155 -0
  23. package/libexec/git-core/git-receive-pack +1 -1
  24. package/libexec/git-core/git-remote-http +1 -1
  25. package/libexec/git-core/git-remote-http.wasm +0 -0
  26. package/libexec/git-core/git-remote-https +1 -1
  27. package/libexec/git-core/git-remote-https.wasm +0 -0
  28. package/libexec/git-core/git-request-pull +178 -0
  29. package/libexec/git-core/git-rev-list +1 -1
  30. package/libexec/git-core/git-sh-i18n +79 -0
  31. package/libexec/git-core/git-sh-setup +357 -0
  32. package/libexec/git-core/git-submodule +671 -0
  33. package/libexec/git-core/git-unpack-objects +1 -1
  34. package/libexec/git-core/git-upload-archive +1 -1
  35. package/libexec/git-core/git-upload-pack +1 -1
  36. package/libexec/git-core/git-web--browse +196 -0
  37. package/libexec/git-core/git.wasm +0 -0
  38. package/package.json +11 -6
  39. package/share/git-core/templates/description +1 -0
  40. package/share/git-core/templates/hooks/applypatch-msg.sample +15 -0
  41. package/share/git-core/templates/hooks/commit-msg.sample +74 -0
  42. package/share/git-core/templates/hooks/fsmonitor-watchman.sample +168 -0
  43. package/share/git-core/templates/hooks/post-update.sample +8 -0
  44. package/share/git-core/templates/hooks/pre-applypatch.sample +14 -0
  45. package/share/git-core/templates/hooks/pre-commit.sample +49 -0
  46. package/share/git-core/templates/hooks/pre-merge-commit.sample +13 -0
  47. package/share/git-core/templates/hooks/pre-push.sample +53 -0
  48. package/share/git-core/templates/hooks/pre-rebase.sample +169 -0
  49. package/share/git-core/templates/hooks/pre-receive.sample +24 -0
  50. package/share/git-core/templates/hooks/prepare-commit-msg.sample +42 -0
  51. package/share/git-core/templates/hooks/push-to-checkout.sample +78 -0
  52. package/share/git-core/templates/hooks/sendemail-validate.sample +77 -0
  53. package/share/git-core/templates/hooks/update.sample +128 -0
  54. package/share/git-core/templates/info/exclude +6 -0
@@ -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