mdisk: Remove color from "Already mounted" message
[sunny256-utils.git] / cl
blob8b6aaa10f14f664a55211d700348bb75c0e86d66
1 #!/usr/bin/env bash
3 #=======================================================================
4 # cl
5 # File ID: 446af502-fa61-11dd-aef2-0001805bf4b1
6 # Latskap. Lister ut loggen for Subversion, SVK eller CVS.
8 # Valg (Må spesifiseres alfabetisk):
10 # -k
11 # Bruk svk istedenfor svn.
12 # -s
13 # Bruk --stop-on-copy.
14 #=======================================================================
16 if [ "$1" = "-k" ]; then
17 use_svk=1
18 shift
19 else
20 use_svk=0
23 if [ "$1" = "-s" ]; then
24 use_stop=1
25 stoponcopy=' --stop-on-copy'
26 svk_cross=''
27 shift
28 else
29 use_stop=0
30 stoponcopy=''
31 svk_cross=' --cross'
34 git log HEAD..HEAD >/dev/null 2>&1
35 if [ "$?" = "0" ]; then
36 git log --name-status --decorate=short -C -M "$@"
37 exit
40 if [ -d .svn/. ]; then
41 if [ "$use_svk" = "1" ]; then
42 svk log$svk_cross "$@" | less
43 else
44 svn log$stoponcopy "$@" | less
46 elif [ -d CVS/. ]; then
47 cvs log$stoponcopy "$@" | sortcvs | less
48 else
49 if [ "$use_svk" = "1" ]; then
50 svk log$svk_cross "$@" | less