[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0376e17: Make git post-checkout hook more ver
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0376e17: Make git post-checkout hook more verbose |
Date: |
Tue, 20 Oct 2020 11:35:45 -0400 (EDT) |
branch: master
commit 0376e17758f9bd19131fc7cf3837b4a407cb46a8
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Make git post-checkout hook more verbose
See:
https://lists.nongnu.org/archive/html/lmi/2020-10/msg00096.html
where it was not obvious that this message:
cmp: /opt/lmi/free/src/lmi//third_party/wxpdfdoc: Is a directory
came from this hook.
Incidentally removed the cause of the doubled '/' in that message.
---
hooks/post-checkout | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hooks/post-checkout b/hooks/post-checkout
index 8396906..87f6913 100755
--- a/hooks/post-checkout
+++ b/hooks/post-checkout
@@ -29,6 +29,8 @@ if [ "greg" != "$(whoami)" ]; then
exit 0
fi
+printf "running post-checkout hook...\n"
+
# Motivation. I maintain a local mirror of origin/master in a
# directory named by ${mirror_dir}. It is often convenient to
# compare it to my working directory using some GUI diff program,
@@ -51,7 +53,7 @@ new_head_name="$(git name-rev --name-only "$new_head")"
changed_files=$(git diff --name-only "$old_head_name..$new_head_name")
-mirror_dir=/opt/lmi/free/src/lmi/
+mirror_dir=/opt/lmi/free/src/lmi
for z in $changed_files
do
@@ -60,3 +62,5 @@ do
touch --no-create --reference="$z" "$y";
fi
done
+
+printf "...post-checkout hook finished.\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 0376e17: Make git post-checkout hook more verbose,
Greg Chicares <=