mirror of
https://github.com/rockchip-linux/mpp.git
synced 2024-11-23 10:04:07 +08:00
[tools]: Update pre-commit hook
Set pre-commit hook to detect changes on staged file. Change-Id: I041a82577263abcdfffc146b5aaba1d0a51def76 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
parent
bbbc9afd5e
commit
796bfb0a97
@ -11,7 +11,7 @@ cd $script_dir
|
||||
|
||||
cd $cur_dir
|
||||
|
||||
git diff > $out_file
|
||||
git status -s | grep "^MM " > $out_file
|
||||
|
||||
if [ -s $out_file ]
|
||||
then {
|
||||
|
Loading…
Reference in New Issue
Block a user