-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwgit.sh
More file actions
executable file
·41 lines (33 loc) · 1.17 KB
/
wgit.sh
File metadata and controls
executable file
·41 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#"worklog" git monitoring for version (1.25) and above
################################################################################
# Skrypt logowania w logu wykonanych róznych akcji GITa , które coś zmieniają
#
# TODO:
# $* vs $@ -->
#https://unix.stackexchange.com/questions/129072/whats-the-difference-between-and
echo "$DEFGIT" $@
#"$DEFGIT" $* #To ma problem ze spacjami w komunikacie po -m
"$DEFGIT" $@ #Ale i to ma problem ze spacjami w komunikacie po -m
#echo "$DEFGIT" $1 $2 $3 $4 $5 $6 $7 $8 $9 #Tak też ma ten problem
#"$DEFGIT" $1 $2 $3 $4 $5 $6 $7 $8 $9
#echo "$DEFGIT" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" #fatal: empty string is not a valid pathspec.
#"$DEFGIT" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
if [ $? == 0 ]
then
if [ $1 == "commit" ]\
|| [ $1 == "push" ]\
|| [ $1 == "pull" ]\
|| [ $1 == "add" ]\
|| [ $1 == "mv" ]\
|| [ $1 == "rm" ]\
|| [ $1 == "branch" ]\
|| [ $1 == "merge" ]\
|| [ $1 == "clone" ]\
|| [ $1 == "restore" ]\
|| [ $1 == "remote" ]
then
#echo CAP:
${WORKLOG}wlog.sh "GIT\t" "`pwd`\t" $@
fi
fi