File tree 2 files changed +31
-5
lines changed
2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,13 @@ exclude_top(){
84
84
85
85
link_latest (){
86
86
# $1: local name of backup minus extension
87
- LATEST=" $DEST_LATEST /$1 .1.dar"
88
- if [ -L " LATEST" ]; then
89
- rm -f " $LATEST " || return 1
90
- fi
91
- ln -s " ../$NOW /$1 .1.dar" " $LATEST " || return 1
87
+ # FIXME This will probably fail on files with spaces in the name:
88
+ for l in $DEST_LATEST /$1 .* .dar; do
89
+ rm -f " $l " || return 1
90
+ done
91
+ for l in $DEST_NOW /$1 .* .dar; do
92
+ ln -s " ../$NOW /$( basename " $l " ) " " $DEST_LATEST /$( basename " $l " ) " || return 1
93
+ done
92
94
}
93
95
94
96
backup_dir (){
Original file line number Diff line number Diff line change
1
+ [alias]
2
+ a = add
3
+ b = branch
4
+ h = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
5
+ l = log
6
+ cfg = config
7
+ an = annex
8
+ r = remote
9
+ s = status
10
+ d = diff
11
+ hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
12
+ hs = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
13
+ [push]
14
+ default = simple
15
+ [url "git://anongit.kde.org/"]
16
+ insteadOf = kde:
17
+
18
+ pushInsteadOf = kde:
19
+ [annex]
20
+ numcopies = 2
21
+ diskreserve = 100 mb
22
+
23
+ [merge]
24
+ tool = kdiff3
You can’t perform that action at this time.
0 commit comments