iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc9cf98
)
ignore .git in subdir linking
author
Ian Kelling
<ian@iankelling.org>
Sat, 7 May 2016 22:00:55 +0000
(15:00 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Sat, 7 May 2016 22:00:55 +0000
(15:00 -0700)
conflink
patch
|
blob
|
history
diff --git
a/conflink
b/conflink
index ddf99010d2520f046014b349defba117b1c08331..e263e0687d7aebd0bcf3663c760ca4bd2a92f8d7 100755
(executable)
--- a/
conflink
+++ b/
conflink
@@
-11,6
+11,7
@@
sysv() {
shopt -s nullglob
+shopt -s extglob
# if we make a link back to the root, traversing the subdirs stops.
# This makes it so we can do subdir directories. Must call with absolute
@@
-20,9
+21,9
@@
subdir-link-r() {
local root="$1"
local targets=()
if [[ $2 ]]; then
- targets=( "$2"/
*
)
+ targets=( "$2"/
!(.git)
)
else
- for f in "$1"/
*
; do
+ for f in "$1"/
!(.git)
; do
[[ -d $f ]] && targets+=("$f") ||:
done
fi