complete annex.skipunknown transition

annex.skipunknown now defaults to false, so commands like `git annex get foo*`
will not silently skip over files/dirs that are not checked into git.

Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
Joey Hess 2022-02-18 13:18:05 -04:00
parent 56d180864f
commit 07215cfeb5
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,8 @@
git-annex (10.20220128) UNRELEASED; urgency=medium git-annex (10.20220128) UNRELEASED; urgency=medium
* annex.skipunknown now defaults to false, so commands like
`git annex get foo*` will not silently skip over files/dirs that are
not checked into git.
* adb: Avoid find failing with "Argument list too long" * adb: Avoid find failing with "Argument list too long"
* Pass --no-textconv when running git diff internally. * Pass --no-textconv when running git diff internally.
* Fix git-annex forget propagation between repositories. * Fix git-annex forget propagation between repositories.

9
NEWS
View file

@ -1,3 +1,12 @@
git-annex (10.20220218) upstream; urgency=medium
Transition notice: Commands like `git-annex get foo*` have changed to error
out when some of files are not checked into the repository. To get back the
previous behavior of silently skipping unknown files, use git config
to set annex.skipunknown to true.
-- Joey Hess <id@joeyh.name> Fri, 18 Feb 2022 13:12:21 -0400
git-annex (8.20211028) upstream; urgency=medium git-annex (8.20211028) upstream; urgency=medium
This version of git-annex removes support for communicating with git-annex This version of git-annex removes support for communicating with git-annex

View file

@ -233,7 +233,7 @@ extractGitConfig configsource r = GitConfig
, annexCommitMode = if getbool (annexConfig "allowsign") False , annexCommitMode = if getbool (annexConfig "allowsign") False
then ManualCommit then ManualCommit
else AutomaticCommit else AutomaticCommit
, annexSkipUnknown = getbool (annexConfig "skipunknown") True , annexSkipUnknown = getbool (annexConfig "skipunknown") False
, annexAdjustedBranchRefresh = fromMaybe , annexAdjustedBranchRefresh = fromMaybe
-- parse as bool if it's not a number -- parse as bool if it's not a number
(if getbool "adjustedbranchrefresh" False then 1 else 0) (if getbool "adjustedbranchrefresh" False then 1 else 0)

View file

@ -836,9 +836,7 @@ repository, using [[git-annex-config]]. See its man page for a list.)
Set to false to make it an error for commands like "git-annex get" Set to false to make it an error for commands like "git-annex get"
to be asked to operate on files that are not checked into git. to be asked to operate on files that are not checked into git.
(This is the default in recent versions of git-annex.)
The default is currently true, but is planned to change to false in a
release in 2022.
Note that, when annex.skipunknown is false, a command like "git-annex get ." Note that, when annex.skipunknown is false, a command like "git-annex get ."
will fail if no files in the current directory are checked into git, will fail if no files in the current directory are checked into git,

View file

@ -2,3 +2,5 @@ annex.skipunknown should be changed to default to false in early 2022.
This transition was started in mid 2020 and there should have been plenty This transition was started in mid 2020 and there should have been plenty
of time for people to learn about it and either set their preferred of time for people to learn about it and either set their preferred
behavior or change workflows for the new behavior. behavior or change workflows for the new behavior.
> [[done]] --[[Joey]]