pxs fonctionne pour les dépôt normaux comme pci -A

This commit is contained in:
Jephté Clain 2015-11-19 10:24:40 +04:00
parent abbb969796
commit dca7bee1ec
1 changed files with 8 additions and 2 deletions

View File

@ -78,11 +78,15 @@ COMMANDS
xadd
xunlock
xdrop
xsync
xwhereis
xwebapp
Chacune de ces commandes est un raccourci vers la commande
correspondante de git annex, sans le préfixe 'x'
xsync
Sur un dépot où git-annex est activé, lancer 'git annex sync' si on est
en mode indirect ou 'git annex sync --content' si on est en mode direct.
Sur un dépôt où git-annex n'est pas activé, faire l'équivalent des
commandes 'git add -A && git commit && git push'
xcopy
xmove
xget
@ -237,7 +241,9 @@ elif array_contains VCS_CMDS "$CMD"; then
elif array_contains GITANNEX_CMDS "$CMD"; then
function xsync() {
if is_yes "$(git config --get annex.direct)"; then
if ! git_have_annex; then
git_commit -A "Maj des fichiers"
elif is_yes "$(git config --get annex.direct)"; then
git annex add &&
git annex sync &&
git annex sync --content &&