git/branch: mark files we couldn't update as dirty
This commit is contained in:
parent
658757abed
commit
682aabf9f6
2 changed files with 8 additions and 4 deletions
|
@ -100,8 +100,10 @@ for(m in $cleanpaths){
|
|||
rm -rf .git/index9/tracked/$m
|
||||
}
|
||||
if(~ $b file){
|
||||
cp -x $basedir/tree/$m $m
|
||||
walk -eq $m > .git/index9/tracked/$m
|
||||
if(cp -x -- $basedir/tree/$m $m)
|
||||
walk -eq $m > .git/index9/tracked/$m
|
||||
if not
|
||||
echo -n > .git/index9/tracked/$m
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@ if(~ $#query 1)
|
|||
files=`$nl{cleanname -d $gitrel $*}
|
||||
for(f in `$nl{cd $commit/tree/ && walk -f $files}){
|
||||
mkdir -p `{basename -d $f}
|
||||
cp -x -- $commit/tree/$f $f
|
||||
git/add $f
|
||||
if(cp -x -- $commit/tree/$f $f)
|
||||
walk -eq $m > .git/index9/tracked/$m
|
||||
if not
|
||||
echo -n > .git/index9/tracked/$m
|
||||
}
|
||||
exit ''
|
||||
|
|
Loading…
Reference in a new issue