summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-11-24 16:14:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-11-24 16:14:06 -0400
commit3a812f5368b8e715c87d00089ced2c67a127247f (patch)
tree9138c6b65f05060a19991c18089c3a290cbef220 /doc/git-annex.mdwn
parent67239c88fd84c0d18645ca75faca37a46c23a278 (diff)
diffdriver: New git-annex command, to make git external diff drivers work with annexed files.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index f1404af46..7ccb36b5d 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -989,6 +989,21 @@ subdirectories).
Merge conflicts between two files that are not annexed will not be
automatically resolved.
+* `diffdriver`
+
+ This is an external git diff driver shim. Normally, when using `git diff`
+ with an external git driver, the symlinks to annexed files are not set up
+ right, so the external git driver cannot read them in order to perform
+ smart diffing of their contents. This command works around the problem,
+ by passing the fixed up files to the real external diff driver.
+
+ To use, just configure git to use "git-annex diffdriver -- cmd params --"
+ as the external diff command, where cmd is the real external diff
+ command you want to use, and params are any extra parameters to pass
+ to it. Note the trailing "--", which is required.
+
+ For example, set `GIT_EXTERNAL_DIFF=git-annex diffdriver -- j-c-diff --`
+
* `remotedaemon`
Detects when network remotes have received git pushes and fetches from them.