sync: Added -g as a short option for --no-content

I anticipate that if sync is transitioned to syncing content by default,
people will want a short option. And in repositories where
annex.synccontent = true, they already would. And pull and push sync
content by default, so a short option is useful with them too.

Mnemonic: -g makes only git data be synced
Also, -a makes only annex data be synced.

Would have preferred -c, which would complement -C, but it
was already taken to set git configs.

Sponsored-by: Noam Kremen on Patreon
This commit is contained in:
Joey Hess 2023-05-17 12:33:57 -04:00
parent 5df89d58c7
commit 40731ff9fd
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 11 additions and 6 deletions

View file

@ -181,6 +181,7 @@ optParser mode desc = SyncOptions
)
<*> switch
( long "no-content"
<> short 'g'
<> help "do not transfer annexed file contents"
)
<*> many (strOption