From 4f3d5d083b1c6fcc1a50d9910c03ba154668a8f9 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 17 Apr 2022 17:03:47 +0000 Subject: [PATCH] git: rename internal 'git/fetch' plumbing to 'git/get' This caused some confusion, so to make it clear that it's plumbing and has nothing to do with 'git fetch', rename it. --- sys/src/cmd/git/clone | 2 +- sys/src/cmd/git/compat | 2 +- sys/src/cmd/git/{fetch.c => get.c} | 0 sys/src/cmd/git/mkfile | 2 +- sys/src/cmd/git/pull | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename sys/src/cmd/git/{fetch.c => get.c} (100%) diff --git a/sys/src/cmd/git/clone b/sys/src/cmd/git/clone index 62b6036dc..93e7f0b97 100755 --- a/sys/src/cmd/git/clone +++ b/sys/src/cmd/git/clone @@ -33,7 +33,7 @@ fn clone{ echo '[remote "origin"]' echo ' url='$remote } - {git/fetch $debug $branchflag $remote >[2=3] | awk ' + {git/get $debug $branchflag $remote >[2=3] | awk ' BEGIN{ headref="" if(ENVIRON["branch"] != "") diff --git a/sys/src/cmd/git/compat b/sys/src/cmd/git/compat index f0c7fce42..25d14308f 100755 --- a/sys/src/cmd/git/compat +++ b/sys/src/cmd/git/compat @@ -131,7 +131,7 @@ fn cmd_ls-remote{ remote=`$nl{git/conf 'remote "'$1'".url'} if(~ $#remote 0) remote=$1 - git/fetch -l $remote | awk '/^remote/{print $3"\t"$2}' + git/get -l $remote | awk '/^remote/{print $3"\t"$2}' } fn cmd_version{ diff --git a/sys/src/cmd/git/fetch.c b/sys/src/cmd/git/get.c similarity index 100% rename from sys/src/cmd/git/fetch.c rename to sys/src/cmd/git/get.c diff --git a/sys/src/cmd/git/mkfile b/sys/src/cmd/git/mkfile index 610d3af7e..e8df434ff 100644 --- a/sys/src/cmd/git/mkfile +++ b/sys/src/cmd/git/mkfile @@ -3,7 +3,7 @@ BIN=/$objtype/bin/git TARG=\ conf\ - fetch\ + get\ fs\ log\ query\ diff --git a/sys/src/cmd/git/pull b/sys/src/cmd/git/pull index 4b84a9f8a..a4c4ce8eb 100755 --- a/sys/src/cmd/git/pull +++ b/sys/src/cmd/git/pull @@ -10,7 +10,7 @@ fn update{ dflag=() if(! ~ $#debug 0) dflag='-d' - {git/fetch $dflag -u $upstream $url >[2=3] || die $status} | awk ' + {git/get $dflag -u $upstream $url >[2=3] || die $status} | awk ' /^remote/{ if($2=="HEAD") next