forked from GitAlias/gitalias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (90 loc) · 3.55 KB
/
index.html
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>git lll - GitAlias</title>
<script defer src="https://use.fontawesome.com/releases/v5.8.2/js/all.js"></script>
<meta name='theme-color' content='#aa1e1e'>
<meta name="application-name" content="GitAlias"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css" integrity="sha256-h/qtq9bUnXbOOwP4EcbLtYM9Mk3iQQcHZAZ+Jz5y0WQ=" crossorigin="anonymous">
<style>
h1 { font-size: 1.8em; margin-top: 2.0rem; }
h2 { font-size: 1.4em; margin-top: 2.0rem; }
h3 { font-size: 1.2em; margin-top: 2.0rem; }
body { margin: 0; line-height: 1.5rem; }
nav { color: white; background: black; padding: 1rem; }
body { font-family: sans-serif; }
pre code { background: #ddd; font-size: 1.2rem; padding: 1.0rem; }
p, dt, dd, li, ol, ul { margin-top: 1.5rem; margin-bottom: 1.5rem; }
footer { margin: 3.0rem 0 0 0; }
.content { margin: 0 auto; padding: 0 10% 0 10%; }
.text-decoration-none, a.text-decoration-none:link, a.text-decoration-none:visited, a.text-decoration-none:hover, a.text-decoration-none:active { text-decoration: none; }
</style>
</head>
<body>
<nav>
<b><a class="text-decoration-none" href="/" style="color: white;">GitAlias.com</a></b>
</nav>
<div class="content">
<h1>git lll</h1>
<h2>Log list long - Show log list with our preferred options and long information</h2>
<p>Git alias:</p>
<pre><code class="language-git">lll = log \
--graph \
--topo-order \
--boundary \
--decorate \
--all \
--date=iso8601-strict \
--no-abbrev-commit \
--abbrev=40 \
--pretty=format:'␟%ad␟%h␟%s␟%cn <%ce>␟%G?' | \
git name-rev --stdin --always --name-only | \
awk 'BEGIN { FS="␟"; OFS="␟"; } { $4 = substr($4, 1, 50); print $0; }' | \
column -s'␟' -t
</code></pre>
<p>Example:</p>
<pre><code class="language-shell">git lll
* 2021-01-01T00:00:00+00:00 remotes/origin/main Add feature foo Alice Adams <[email protected]> N
…
</code></pre>
<h3>Compare</h3>
<p>Compare the alias <a href="../git-ll">git ll</a> a.k.a. <a href="../git-log-list">git log-list</a> which is using:</p>
<ul>
<li>
<p>Short date format using YYYY-MM-DD (no time, no zone)</p>
</li>
<li>
<p>Short commit format using abbreviated hexadecimal (not full hexadecimal)</p>
</li>
<li>
<p>Short author field using name (no email address)</p>
</li>
<li>
<p>Short layout without columns</p>
</li>
</ul>
<p>And the alias <a href="../git-lll">git lll</a> a.k.a. <a href="../git-log-list-long">git log-list-long</a> which is using:</p>
<ul>
<li>
<p>Long date format using iso8601 strict YYYY-MM-DDTHH:MM:SS+HH:MM</p>
</li>
<li>
<p>Long commit format using hash hexadecimal displayed as name-rev</p>
</li>
<li>
<p>Long author field using name and email address</p>
</li>
<li>
<p>Long layout with columns</p>
</li>
</ul>
</div>
<footer class="footer">
<nav><b><a class="text-decoration-none" href="/" style="color: white;">GitAlias.com</a></b></nav>
</footer>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js" integrity="sha256-vlRYHThwdq55dA+n1BKQRzzLwFtH9VINdSI68+5JhpU=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" integrity="sha256-cl5LNmPvcRcGFaQFjwEKIfs51AX7wBkvoByH6LTxQCs=" crossorigin="anonymous"></script>
</body>
</html>