Skip to content

Commit efed32e

Browse files
author
Diggory Hardy
committed
Add gitconfig, update dar-backup
1 parent 93fafa7 commit efed32e

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

dar-backup.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ exclude_top(){
8484

8585
link_latest(){
8686
# $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
9294
}
9395

9496
backup_dir(){

gitconfig

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)