]> dgit.raspbian.org Git - git-annex.git/commitdiff
complete annex.skipunknown transition
authorJoey Hess <joeyh@joeyh.name>
Fri, 18 Feb 2022 17:18:05 +0000 (13:18 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 18 Feb 2022 17:18:05 +0000 (13:18 -0400)
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
CHANGELOG
NEWS
Types/GitConfig.hs
doc/git-annex.mdwn
doc/todo/complete_annex.skipunknown_transition_in_2022.mdwn

index 392620d9e558a78d1465dc8ba226bc071a9075c2..31f1f3d653b618724b2bf5e47605e44cdc55af88 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,8 @@
 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"
   * Pass --no-textconv when running git diff internally.
   * Fix git-annex forget propagation between repositories.
diff --git a/NEWS b/NEWS
index 188824068ffd0f5992bff785c242d93f1e07c1a0..489f86e9c3b28fc6234a93cb6e9ba29068c0a5f0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
 
   This version of git-annex removes support for communicating with git-annex
index 46362de897e25d11c758245ca5c66dd264c88ab7..d54514fc0803cea9396c3bb1f64443a4288f46e9 100644 (file)
@@ -233,7 +233,7 @@ extractGitConfig configsource r = GitConfig
        , annexCommitMode = if getbool (annexConfig "allowsign") False
                then ManualCommit
                else AutomaticCommit
-       , annexSkipUnknown = getbool (annexConfig "skipunknown") True
+       , annexSkipUnknown = getbool (annexConfig "skipunknown") False
        , annexAdjustedBranchRefresh = fromMaybe
                -- parse as bool if it's not a number
                (if getbool "adjustedbranchrefresh" False then 1 else 0)
index 08eff60715f5035d1364ceb2fdcfd0c75237d7ce..a1ce1baa4e5d827447aaa6b642f43253f0891041 100644 (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"
   to be asked to operate on files that are not checked into git.
-
-  The default is currently true, but is planned to change to false in a
-  release in 2022.
+  (This is the default in recent versions of git-annex.)
 
   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,
index 9d5f13dc24eb156f5268345651d10b7826a045c4..a8de0c61b69debf7948434cdfe05a2cdf4ec320c 100644 (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
 of time for people to learn about it and either set their preferred
 behavior or change workflows for the new behavior.
+
+> [[done]] --[[Joey]]