[OS-BUILD PATCHv5 4/26] [redhat] egit.sh: simplify, add use case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ben Crocker <bcrocker@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux