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 '[remote "origin"]'
|
||||||
echo ' url='$remote
|
echo ' url='$remote
|
||||||
}
|
}
|
||||||
{git/fetch $debug $branchflag $remote >[2=3] | awk '
|
{git/get $debug $branchflag $remote >[2=3] | awk '
|
||||||
BEGIN{
|
BEGIN{
|
||||||
headref=""
|
headref=""
|
||||||
if(ENVIRON["branch"] != "")
|
if(ENVIRON["branch"] != "")
|
||||||
|
|
|
@ -131,7 +131,7 @@ fn cmd_ls-remote{
|
||||||
remote=`$nl{git/conf 'remote "'$1'".url'}
|
remote=`$nl{git/conf 'remote "'$1'".url'}
|
||||||
if(~ $#remote 0)
|
if(~ $#remote 0)
|
||||||
remote=$1
|
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{
|
fn cmd_version{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
BIN=/$objtype/bin/git
|
BIN=/$objtype/bin/git
|
||||||
TARG=\
|
TARG=\
|
||||||
conf\
|
conf\
|
||||||
fetch\
|
get\
|
||||||
fs\
|
fs\
|
||||||
log\
|
log\
|
||||||
query\
|
query\
|
||||||
|
|
|
@ -10,7 +10,7 @@ fn update{
|
||||||
dflag=()
|
dflag=()
|
||||||
if(! ~ $#debug 0)
|
if(! ~ $#debug 0)
|
||||||
dflag='-d'
|
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/{
|
/^remote/{
|
||||||
if($2=="HEAD")
|
if($2=="HEAD")
|
||||||
next
|
next
|
||||||
|
|
Loading…
Reference in a new issue