Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
a2e7b0ac
Commit
a2e7b0ac
authored
Jan 12, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
c90c438d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
post-merge
lua-ui/hook/post-merge
+4
-0
No files found.
lua-ui/hook/post-merge
View file @
a2e7b0ac
...
@@ -2,9 +2,13 @@
...
@@ -2,9 +2,13 @@
# git hook to run a command after `git pull` if a specified file was changed
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
echo "$changed_files"
check_run() {
check_run() {
havefile=`echo "$changed_files" | grep "$1"`
havefile=`echo "$changed_files" | grep "$1"`
echo "------check git change key file------"
echo "$havefile"
if [[ -n "${havefile}" ]];then
if [[ -n "${havefile}" ]];then
eval "$2"
eval "$2"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment