diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-14 16:15:24 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-14 16:15:24 -0700 |
commit | 4bb43276587e6b53b6c951b0b772ac63c61892cb (patch) | |
tree | 7bfa78b952b4ca66593d8e863fa2ad9c901ca58e /bin/annex-drop-files-deleted-by-commit | |
parent | f17dca8b3b674ff62b8c5c343d65a480b064423a (diff) | |
download | dotfiles-4bb43276587e6b53b6c951b0b772ac63c61892cb.tar.gz |
comment
Diffstat (limited to 'bin/annex-drop-files-deleted-by-commit')
-rwxr-xr-x | bin/annex-drop-files-deleted-by-commit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/annex-drop-files-deleted-by-commit b/bin/annex-drop-files-deleted-by-commit index bc2eac16..a129b8b5 100755 --- a/bin/annex-drop-files-deleted-by-commit +++ b/bin/annex-drop-files-deleted-by-commit @@ -15,6 +15,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# EXAMPLE +# +# % git log --format='format:%H' \ +# --since='1 day ago' --grep='delete junk' --grep='delete more junk' \ +# | xargs annex-drop-files-deleted-by-commit + use 5.028; use strict; use warnings; @@ -56,7 +62,7 @@ for (@ARGV) { system('git', '-C', $temp, 'annex', 'drop', %drop_args, @deleted_files); } # we can't use `git worktree remove` because the way git-annex -# worktree support works breaks that command: git annex replaces the +# worktree support works breaks that command: git-annex replaces the # .git worktree file with a symlink rmtree($temp); $git->worktree("prune"); |