chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece5816
)
dgit: absurd: Break out PATH filtering
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Feb 2020 21:08:02 +0000
(21:08 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 2 Feb 2020 16:30:41 +0000
(16:30 +0000)
Actually this function just sets it to the already-computed $npath,
but this is an implementation detail.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
absurd/git
patch
|
blob
|
history
diff --git
a/absurd/git
b/absurd/git
index cab0320cc094ba1e6e486eeb0b86c27bdbe66c48..d8ac24e660ad2a383cc1738f949c0d2c75137060 100755
(executable)
--- a/
absurd/git
+++ b/
absurd/git
@@
-25,6
+25,10
@@
if test "x$PATH" = "x$npath"; then
fail "PATH FILTER FAIL ($0 $self $PATH)"
fi
+filter_path () {
+ PATH=$npath
+}
+
bypass=true
for arg in "$@"; do
case "$arg" in
@@
-35,7
+39,7
@@
for arg in "$@"; do
done
if $bypass; then
-
PATH=$n
path
+
filter_
path
echo >&3 "DGIT ABSURD GIT APPLY - BYPASS: $*"
exec git "$@"
fi