Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
9980ddff30
3 changed files with 64 additions and 0 deletions
29
doc/bugs/--git-dir_and_--work-tree_options.mdwn
Normal file
29
doc/bugs/--git-dir_and_--work-tree_options.mdwn
Normal file
|
@ -0,0 +1,29 @@
|
|||
git-annex does not take into account the --git-dir and --work-tree command line options (while they can be useful when scripting).
|
||||
|
||||
> mkdir /tmp/test
|
||||
> cd /tmp/test
|
||||
> git init
|
||||
Initialized empty Git repository in /tmp/test/.git/
|
||||
> git annex init test
|
||||
init test ok
|
||||
> touch foo
|
||||
> cd
|
||||
> git --git-dir=/tmp/test/.git --work-tree=/tmp/test annex add foo
|
||||
git-annex: Not in a git repository.
|
||||
|
||||
regular git add works:
|
||||
|
||||
> git --git-dir=/tmp/test/.git --work-tree=/tmp/test add foo
|
||||
> git --git-dir=/tmp/test/.git --work-tree=/tmp/test status
|
||||
# On branch master
|
||||
#
|
||||
# Initial commit
|
||||
#
|
||||
# Changes to be committed:
|
||||
# (use "git rm --cached <file>..." to unstage)
|
||||
#
|
||||
# new file: foo
|
||||
#
|
||||
|
||||
git-annex version: 3.20110702
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
as of git-annex version 3.20110719, all git-annex commits only contain the word "update" as a commit message. given that the contents of the commit are pretty non-descriptive (SHA1 hashes for file names, uuids for repository names), i suggest to have more descriptive commit messages, as shown here:
|
||||
|
||||
/mnt/usb_disk/photos/2011$ git annex get
|
||||
/mnt/usb_disk/photos/2011$ git show git-annex
|
||||
[...]
|
||||
usb-disk-photos: get 2011
|
||||
|
||||
* 10 files retrieved from 2 sources (9 from local-harddisk, 1 from my-server)
|
||||
* 120 files were already present
|
||||
* 2 files could not be retrieved
|
||||
/mnt/usb_disk/photos/2011$ cd ~/photos/2011/07
|
||||
~/photos/2011/07$ git copy --to my-server
|
||||
~/photos/2011/07$ git show git-annex
|
||||
[...]
|
||||
local-harddisk: copy 2011/07 to my-server
|
||||
|
||||
* 20 files pushed
|
||||
~/photos/2011/07$
|
||||
|
||||
in my opinion, the messages should at least contain
|
||||
|
||||
* what command was used
|
||||
* in which repository they were executed
|
||||
* which files or directories they affected (not necessarily all files, but what was given on command line or implicitly from the working directory)
|
||||
|
||||
--[[chrysn]]
|
9
doc/forum/version_3_upgrade.mdwn
Normal file
9
doc/forum/version_3_upgrade.mdwn
Normal file
|
@ -0,0 +1,9 @@
|
|||
after upgrading to git-annex 3, i'm stuck with diverging git-annex branches -- i didn't manage to follow this line in the directions:
|
||||
|
||||
> After this upgrade, you should make sure you include the git-annex branch when git pushing and pulling.
|
||||
|
||||
could you explain how to do that in a littel more detail? git pull seems to only merge master, although i have these ``.git/config`` settings:
|
||||
|
||||
[branch "git-annex"]
|
||||
remote = origin
|
||||
merge = git-annex
|
Loading…
Reference in a new issue