]> gitweb.factorcode.org Git - factor.git/commitdiff
cli.git: rename git-checkout-existing-branch to git-checkout-existing
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 28 Apr 2022 04:14:28 +0000 (23:14 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 28 Apr 2022 04:14:28 +0000 (23:14 -0500)
basis/fixups/fixups.factor
extra/cli/git/git.factor

index 2816cb6ebecaa21bb23d9a4e9a40babcb3b45d00..34fe1ba6782d404472d005865385c1f919bf4543 100644 (file)
@@ -39,6 +39,8 @@ CONSTANT: word-renames {
     { "read-json-objects" { "json.reader:read-json" "0.99" } }
     { "init-namespaces" { "namespaces:init-namestack" "0.99" } }
     { "iota" { "sequences:<iota>" ".98" } }
+    { "git-checkout-existing-branch" { "git-checkout-existing" "0.99" } }
+    { "git-checkout-existing-branch*" { "git-checkout-existing*" "0.99" } }
 }
 
 : compute-assoc-fixups ( continuation name assoc -- seq )
index 44cb671e4334179d506aabe18b25bf5cace94fb4..22b59f2312e3b30bfd1c2a346ce5cbf445802107 100644 (file)
@@ -22,8 +22,8 @@ cli-git-num-parallel [ cpus 2 * ] initialize
 : git-fetch-tags ( path -- process ) [ git-fetch-tags* ] with-directory ;
 : git-checkout-new-branch* ( branch -- process ) [ { "git" "checkout" "-b" } ] dip suffix run-process ;
 : git-checkout-new-branch ( path branch -- process ) '[ _ git-checkout-new-branch* ] with-directory ;
-: git-checkout-existing-branch* ( branch -- process ) [ { "git" "checkout" } ] dip suffix run-process ;
-: git-checkout-existing-branch ( path branch -- process ) '[ _ git-checkout-existing-branch* ] with-directory ;
+: git-checkout-existing* ( branch/checksum -- process ) [ { "git" "checkout" } ] dip suffix run-process ;
+: git-checkout-existing ( path branch/checksum -- process ) '[ _ git-checkout-existing* ] with-directory ;
 : git-change-remote* ( remote uri -- process ) [ { "git" "remote" "set-url" } ] 2dip 2array append run-process ;
 : git-change-remote ( path remote uri -- process ) '[ _ _ git-change-remote* ] with-directory ;
 : git-remote-add* ( remote uri -- process ) [ { "git" "remote" "add" } ] 2dip 2array append run-process ;