support de git-annex
This commit is contained in:
parent
fe354d6585
commit
e84b6999c3
34
uproject
34
uproject
|
@ -52,6 +52,20 @@ COMMANDS
|
|||
-r REV
|
||||
Afficher les différences depuis la révision REV.
|
||||
-R Afficher les modifications effectuées depuis la dernière release.
|
||||
|
||||
annex [args]
|
||||
Lancer git annex avec les arguments spécifiés.
|
||||
xadd
|
||||
xunlock
|
||||
xcopy
|
||||
xdrop
|
||||
xmove
|
||||
xget
|
||||
xsync
|
||||
xwhereis
|
||||
Chacune de ces commandes est un raccourci vers la commande
|
||||
correspondante de git annex, sans le préfixe 'x'
|
||||
|
||||
printml [-t TYPE]
|
||||
Afficher le modeline pour un fichier du type spécifié
|
||||
addml [-t TYPE] file
|
||||
|
@ -73,6 +87,9 @@ SCRIPT_ALIASES=(
|
|||
pv:vcs
|
||||
pa:add prm:remove pcp:copy pmv:move pmd:mkdir
|
||||
pci:commit pu:update pp:push pdiff:diff
|
||||
pxx:annex
|
||||
pxa:xadd pxu:unlock pxc:xcopy pxd:xdrop pxm:xmove
|
||||
pxg:xget pxs:xsync pxw:xwhereis
|
||||
pnew:new
|
||||
pgr:grep
|
||||
paddml:addml
|
||||
|
@ -89,11 +106,21 @@ CMD_ALIASES=(
|
|||
s:status st:status
|
||||
u:update upd:update
|
||||
p:push
|
||||
xx:annex
|
||||
xa:xadd
|
||||
xu:xunlock
|
||||
xc:xcopy
|
||||
xd:xdrop
|
||||
xm:xmove
|
||||
xg:xget
|
||||
xs:xsync
|
||||
xw:xwhereis
|
||||
gr:grep
|
||||
)
|
||||
DEFAULT_CMD=status
|
||||
PY_CMDS=(new)
|
||||
VCS_CMDS=(getvcs getroot getrepos geturl vcs add remove copy move mkdir commit status update push diff tag)
|
||||
GITANNEX_CMDS=(annex xadd xunlock xcopy xdrop xmove xget xsync xwhereis)
|
||||
ML_CMDS=(printml addml)
|
||||
|
||||
if [ "$#" -eq 1 -a "$1" == --nutools-makelinks ]; then
|
||||
|
@ -163,6 +190,13 @@ elif array_contains ML_CMDS "$CMD"; then
|
|||
elif array_contains VCS_CMDS "$CMD"; then
|
||||
"vcs_$CMD" "$@"
|
||||
|
||||
elif array_contains GITANNEX_CMDS "$CMD"; then
|
||||
if [ "$CMD" == "annex" ]; then
|
||||
git annex "$@"
|
||||
else
|
||||
git annex "${CMD#x}" "$@"
|
||||
fi
|
||||
|
||||
elif array_contains PY_CMDS "$CMD"; then
|
||||
exec "$scriptdir/lib/pywrapper" uproject.py "$CMD" "$@"
|
||||
|
||||
|
|
Loading…
Reference in New Issue