unused: Update suggested git log message to see where data was previously used so it will also work with v7 unlocked pointer files.
This commit is contained in:
parent
c53a168717
commit
365286279f
3 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,8 @@ git-annex (7.20181212) UNRELEASED; urgency=medium
|
||||||
* init: When --version=5 is passed on a crippled filesystem,
|
* init: When --version=5 is passed on a crippled filesystem,
|
||||||
use a v5 direct mode repo as requested, rather than upgrading to v7
|
use a v5 direct mode repo as requested, rather than upgrading to v7
|
||||||
adjusted unlocked. (Fixes test suite on crippled filesystems.)
|
adjusted unlocked. (Fixes test suite on crippled filesystems.)
|
||||||
|
* unused: Update suggested git log message to see where data was previously
|
||||||
|
used so it will also work with v7 unlocked pointer files.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Tue, 18 Dec 2018 12:24:52 -0400
|
-- Joey Hess <id@joeyh.name> Tue, 18 Dec 2018 12:24:52 -0400
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ unusedMsg' :: [(Int, Key)] -> [String] -> [String] -> String
|
||||||
unusedMsg' u mheader mtrailer = unlines $
|
unusedMsg' u mheader mtrailer = unlines $
|
||||||
mheader ++
|
mheader ++
|
||||||
table u ++
|
table u ++
|
||||||
["(To see where data was previously used, try: git log --stat -S'KEY')"] ++
|
["(To see where data was previously used, try: git log --stat --no-textconv -S'KEY')"] ++
|
||||||
mtrailer
|
mtrailer
|
||||||
|
|
||||||
remoteUnusedMsg :: Maybe Remote -> RemoteName -> [(Int, Key)] -> String
|
remoteUnusedMsg :: Maybe Remote -> RemoteName -> [(Int, Key)] -> String
|
||||||
|
|
|
@ -17,3 +17,5 @@ Indeed, -S doesn't find anything here. I suspect that is because git's
|
||||||
smudge/clean interface kicks in in `--stat`. The above text should add
|
smudge/clean interface kicks in in `--stat`. The above text should add
|
||||||
the `--no-textconv` argument to avoid that. At least it works here. :)
|
the `--no-textconv` argument to avoid that. At least it works here. :)
|
||||||
-- [[anarcat]]
|
-- [[anarcat]]
|
||||||
|
|
||||||
|
> Nice catch, thanks! [[done]] --[[Joey]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue