support de git-annex
This commit is contained in:
parent
fe354d6585
commit
e84b6999c3
34
uproject
34
uproject
|
@ -52,6 +52,20 @@ COMMANDS
|
||||||
-r REV
|
-r REV
|
||||||
Afficher les différences depuis la révision REV.
|
Afficher les différences depuis la révision REV.
|
||||||
-R Afficher les modifications effectuées depuis la dernière release.
|
-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]
|
printml [-t TYPE]
|
||||||
Afficher le modeline pour un fichier du type spécifié
|
Afficher le modeline pour un fichier du type spécifié
|
||||||
addml [-t TYPE] file
|
addml [-t TYPE] file
|
||||||
|
@ -73,6 +87,9 @@ SCRIPT_ALIASES=(
|
||||||
pv:vcs
|
pv:vcs
|
||||||
pa:add prm:remove pcp:copy pmv:move pmd:mkdir
|
pa:add prm:remove pcp:copy pmv:move pmd:mkdir
|
||||||
pci:commit pu:update pp:push pdiff:diff
|
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
|
pnew:new
|
||||||
pgr:grep
|
pgr:grep
|
||||||
paddml:addml
|
paddml:addml
|
||||||
|
@ -89,11 +106,21 @@ CMD_ALIASES=(
|
||||||
s:status st:status
|
s:status st:status
|
||||||
u:update upd:update
|
u:update upd:update
|
||||||
p:push
|
p:push
|
||||||
|
xx:annex
|
||||||
|
xa:xadd
|
||||||
|
xu:xunlock
|
||||||
|
xc:xcopy
|
||||||
|
xd:xdrop
|
||||||
|
xm:xmove
|
||||||
|
xg:xget
|
||||||
|
xs:xsync
|
||||||
|
xw:xwhereis
|
||||||
gr:grep
|
gr:grep
|
||||||
)
|
)
|
||||||
DEFAULT_CMD=status
|
DEFAULT_CMD=status
|
||||||
PY_CMDS=(new)
|
PY_CMDS=(new)
|
||||||
VCS_CMDS=(getvcs getroot getrepos geturl vcs add remove copy move mkdir commit status update push diff tag)
|
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)
|
ML_CMDS=(printml addml)
|
||||||
|
|
||||||
if [ "$#" -eq 1 -a "$1" == --nutools-makelinks ]; then
|
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
|
elif array_contains VCS_CMDS "$CMD"; then
|
||||||
"vcs_$CMD" "$@"
|
"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
|
elif array_contains PY_CMDS "$CMD"; then
|
||||||
exec "$scriptdir/lib/pywrapper" uproject.py "$CMD" "$@"
|
exec "$scriptdir/lib/pywrapper" uproject.py "$CMD" "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue