aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/Wishlist__58___additional_environment_variables_for_hooks.mdwn
blob: 6e852b9f25f1f8b31a3213d952598c95d2a13238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
It would be nice if a couple of additional environment variables to be set for hook uses.

In particular:

    GIT_ANNEX_DIRECT=`git config annex.direct`

and

    GIT_TOP_LEVEL=`git rev-parse --show-toplevel`


I've made some changes to flickrannex to allow the sub-directories above the uploaded image to be added as tags.  This change has been merged into trunk: [[https://github.com/TobiasTheViking/flickrannex]]

What I needed was both the environment variables mentioned above.  One is set as part of the annex-hook and the other I guestimate from the file path.  If it was set in git-annex it would be much cleaner (and accurate).  So...I think this info would be useful for other hook.