document git-annex satisfy
authorJoey Hess <joeyh@joeyh.name>
Thu, 29 Jun 2023 18:15:01 +0000 (14:15 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 29 Jun 2023 18:15:01 +0000 (14:15 -0400)
CHANGELOG
doc/git-annex-pull.mdwn
doc/git-annex-push.mdwn
doc/git-annex-satisfy.mdwn [new file with mode: 0644]
doc/git-annex-sync.mdwn
doc/git-annex.mdwn
git-annex.cabal

index 220a2306b2d2ce54d135464002bc68a85e6e6689..ddc7114f5d38b724a19ade08654e3ec6f408c881 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
 git-annex (10.20230627) UNRELEASED; urgency=medium
 
+  * satify: New command that gets/sends/drops content to satisfy
+    numcopies and preferred content settings. This is similar to
+    the --content part of git-annex sync, but with an interface
+    more like get/move/drop.
   * reinject: Added --guesskeys option.
   * diffdriver: Added --text option for easy diffing of the contents of
     annexed text files.
index 6095bf06c9de0a221d1091630af2fd7f73e9c92e..5c8dec7027902f7df3f588a5fc9be66b568e630d 100644 (file)
@@ -136,6 +136,8 @@ See [[git-annex-preferred-content]](1).
 
 [[git-annex-preferred-content]](1)
 
+[[git-annex-satisfy]](1)
+
 # AUTHOR
 
 Joey Hess <id@joeyh.name>
index feb3622231fdb30d363adb13091dea97bdc7292b..bda06ceeb28bbccd64adfdae216d051cab8c986b 100644 (file)
@@ -134,6 +134,8 @@ See [[git-annex-preferred-content]](1).
 
 [[git-annex-preferred-content]](1)
 
+[[git-annex-satisfy]](1)
+
 # AUTHOR
 
 Joey Hess <id@joeyh.name>
diff --git a/doc/git-annex-satisfy.mdwn b/doc/git-annex-satisfy.mdwn
new file mode 100644 (file)
index 0000000..c2211ce
--- /dev/null
@@ -0,0 +1,89 @@
+# NAME
+
+git-annex satisfy - transfer and drop content as configured
+
+# SYNOPSIS
+
+git annex satisffy `[path ...]`
+
+# DESCRIPTION
+
+This transfers and drops content to satisfy the numcopies and preferred
+content settings of the local repository and remotes.
+
+It does the same thing as `git-annex sync --content` without the pulling
+and pushing of git repositories.
+
+By default it operates on all annexed files in the current directory and
+its subdirectories. Paths of files or directories can also be specified.
+
+# OPTIONS
+
+* `--jobs=N` `-JN`
+
+  Enables parallel processing with up to the specified number of jobs
+  running at once. For example: `-J10`
+
+  Setting this to "cpus" will run one job per CPU core.
+
+* `--all` `-A`
+
+  Operate on all objects stored in the git annex, not only objects used by
+  currently existing files. 
+  
+  However, this bypasses checking the .gitattributes annex.numcopies
+  setting when dropping files.
+
+  This is the default behavior when running git-annex in a bare repository.
+
+* `--branch=ref`
+
+  Operate on files in the specified branch or treeish.
+
+  Like --all, this bypasses checking the .gitattributes annex.numcopies
+  setting when dropping files.
+
+* `--unused`
+
+  Operate on files found by last run of git-annex unused.
+
+* `--failed`
+
+  Operate on files that have recently failed to be transferred.
+
+* matching options
+
+  The [[git-annex-matching-options]](1)
+  can be used to control what files to operate on.
+
+* `--json`
+
+  Enable JSON output. This is intended to be parsed by programs that use
+  git-annex. Each line of output is a JSON object.
+
+* `--json-progress`
+
+  Include progress objects in JSON output.
+
+* `--json-error-messages`
+
+  Messages that would normally be output to standard error are included in
+  the JSON instead.
+
+* Also the [[git-annex-common-options]](1) can be used.
+
+# SEE ALSO
+
+[[git-annex]](1)
+
+[[git-annex-sync]](1)
+
+[[git-annex-preferred-numcopies]](1)
+
+[[git-annex-preferred-content]](1)
+
+# AUTHOR
+
+Joey Hess <id@joeyh.name>
+
+Warning: Automatically converted into a man page by mdwn2man. Edit with care.
index 9f4cee1fde4b5403e97e821157ed25906e5230af..8712a8bc8ba110bd909006ae487e0a94393e94fc 100644 (file)
@@ -76,6 +76,8 @@ content by default. That will change in a future version of git-annex,
 
 [[git-annex-assist]](1)
 
+[[git-annex-satisfy]](1)
+
 # AUTHOR
 
 Joey Hess <id@joeyh.name>
index 1a2a2887a0548cc5f00a1c9b4567b5fa9762aab3..e294d9a2adf2f5a8bb5d8bee228888067a047cc1 100644 (file)
@@ -138,6 +138,13 @@ content from the key-value store.
   
   See [[git-annex-assist]](1) for details.
 
+* `satisfy [path ...]`
+
+  Satisfy numcopies and preferred content settings by transferring
+  and dropping content.
+  
+  See [[git-annex-satisfy]](1) for details.
+
 * `mirror [path ...] [--to=remote|--from=remote]`
 
   Mirror content of files to/from another repository.
index e9160034b87500ee6a4085297af3599494487131..46a554c0d10dd3776e44c5c1750bd39c19f3fc5b 100644 (file)
@@ -118,6 +118,7 @@ Extra-Source-Files:
   doc/git-annex-restage.mdwn
   doc/git-annex-resolvemerge.mdwn
   doc/git-annex-rmurl.mdwn
+  doc/git-annex-satisfy.mdwn
   doc/git-annex-schedule.mdwn
   doc/git-annex-semitrust.mdwn
   doc/git-annex-setkey.mdwn