config/git: add git-cherry-get
This commit is contained in:
parent
1ba6d49337
commit
e040ac0527
|
@ -20,6 +20,7 @@ case $command in
|
||||||
git commit -m "Create package" "$@"
|
git commit -m "Create package" "$@"
|
||||||
git aur push --amend;;
|
git aur push --amend;;
|
||||||
(push)
|
(push)
|
||||||
|
updpkgsums
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
git add -f .SRCINFO *.install 2>/dev/null || true
|
git add -f .SRCINFO *.install 2>/dev/null || true
|
||||||
git commit -v -a "$@"
|
git commit -v -a "$@"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
# Pick commit $2 (or HEAD) from the given git repository
|
||||||
|
# https://stackoverflow.com/questions/5120038/is-it-possible-to-cherry-pick-a-commit-from-another-git-repository
|
||||||
|
git "--git-dir=$1/.git" format-patch -k -1 --stdout $2 | git am -3 -k
|
Loading…
Reference in New Issue