From: Ben Crocker <bcrocker(a)redhat.com>
Simplify the case statement to only the git subcommands we actually
provide overrides for.
Usage:
GIT=<path to egit.sh> EGIT_OVERRIDE_DESCRIBE=v5.9-rc8 DIST=.elrdy make dist-srpm
GIT=<path to egit.sh> EGIT_OVERRIDE_MERGE_BASE=<sha1> DIST=.elrdy make
dist-srpm
Signed-off-by: Ben Crocker <bcrocker(a)redhat.com>
---
redhat/egit.sh | 33 ---------------------------------
1 file changed, 33 deletions(-)
diff --git a/redhat/egit.sh b/redhat/egit.sh
index e8d7f7390d8a..b998f868a314 100755
--- a/redhat/egit.sh
+++ b/redhat/egit.sh
@@ -3,18 +3,6 @@
arg=$1
shift
case $arg in
- add )
- git add "$@"
- ;;
- branch )
- git branch "$@"
- ;;
- commit )
- git commit "$@"
- ;;
- config )
- git config "$@"
- ;;
describe )
if [ -n "$EGIT_OVERRIDE_DESCRIBE" ]
then
@@ -24,15 +12,6 @@ case $arg in
git describe "$@"
fi
;;
- diff )
- git diff "$@"
- ;;
- diff-index )
- git diff-index "$@"
- ;;
- log )
- git log "$@"
- ;;
merge-base )
if [ -n "$EGIT_OVERRIDE_MERGE_BASE" ]
then
@@ -42,18 +21,6 @@ case $arg in
git merge-base "$@"
fi
;;
- rev-parse )
- git rev-parse "$@"
- ;;
- show )
- git show "$@"
- ;;
- tag )
- git tag "$@"
- ;;
- remote )
- git remote "$@"
- ;;
* )
git "$arg" "$@"
;;
--
GitLab