This repository was archived by the owner on Dec 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathgit.mk
More file actions
63 lines (55 loc) · 1.84 KB
/
git.mk
File metadata and controls
63 lines (55 loc) · 1.84 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
########################################################################
# Version Control - git
status:
@echo "-------------------------------------------------------"
git status --untracked-files=no
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd $(APP); git status --untracked-files=no)
endif
@echo "-------------------------------------------------------"
pull:
@echo "-------------------------------------------------------"
git pull
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd $(APP); git pull)
endif
@echo "-------------------------------------------------------"
push:
@echo "-------------------------------------------------------"
git push
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd $(APP); git push)
endif
@echo "-------------------------------------------------------"
diff:
@echo "-------------------------------------------------------"
git --no-pager diff --color
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd rattle; git --no-pager diff --color)
endif
@echo "-------------------------------------------------------"
difftool:
git difftool
ifneq ($(APP),)
(cd rattle; git difftool)
endif
log:
@echo "-------------------------------------------------------"
git --no-pager log --stat --max-count=10
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd $(APP); git --no-pager log --stat --max-count=10)
endif
@echo "-------------------------------------------------------"
fulllog:
@echo "-------------------------------------------------------"
git --no-pager log
ifneq ($(APP),)
@echo "-------------------------------------------------------"
(cd $(APP); git --no-pager log)
endif
@echo "-------------------------------------------------------"