File: day_474__tracking_exports.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (26 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Built a way to make an export track changes to a branch.

	git annex export --tracking master --to myexport

That ties in nicely with `git annex sync`:

	joey@darkstar:~/tmp/bench/a> echo hello > foo
	joey@darkstar:~/tmp/bench/a> git annex add
	add foo ok
	joey@darkstar:~/tmp/bench/a> git annex sync --content
	commit  
	[master 8edbc6f] git-annex in joey@darkstar:~/tmp/bench/a
	 1 file changed, 1 insertion(+)
	 create mode 120000 foo
	ok
	export myexport foo 
	ok                          
	joey@darkstar:~/tmp/bench/a> git mv foo bar
	joey@darkstar:~/tmp/bench/a> git annex sync --content
	commit  
	[master 3ab6e73] git-annex in joey@darkstar:~/tmp/bench/a
	 1 file changed, 0 insertions(+), 0 deletions(-)
	 rename foo => bar (100%)
	ok
	rename myexport foo -> .git-annex-tmp-content-SHA256E-s6--5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 ok
	rename myexport .git-annex-tmp-content-SHA256E-s6--5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 -> bar ok