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.
This commit is contained in:
parent
0375d0a3ab
commit
4f3d5d083b
5 changed files with 4 additions and 4 deletions
|
@ -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"] != "")
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
BIN=/$objtype/bin/git
|
||||
TARG=\
|
||||
conf\
|
||||
fetch\
|
||||
get\
|
||||
fs\
|
||||
log\
|
||||
query\
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue