-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
script-install-instructions.html
72 lines (65 loc) · 2.33 KB
/
script-install-instructions.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Mobster</title>
<link rel="stylesheet" href="./assets/js/highlight/styles/github.css">
<script src="./assets/js/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad()</script>
<link rel="stylesheet" href="./assets/css/bootstrap337.min.css" />
<link rel="stylesheet" href="./assets/css/bootstrap-darkly-theme.min.css" />
<link rel="stylesheet" href="./assets/css/font-awesome.min.css" />
<script type="text/javascript">
const $ = (jQuery = require('jquery'))
</script>
</head>
<body>
<div class="container-fluid">
<h1>Installing Mob Commit Script</h1>
<pre id="copy" class="bash"><code>#!/usr/bin/env bash
USER_EMAIL=`git config --get user.email`
MOBSTERS=`cat '<span class="active-mobsters-path"></span>'`
# NOTE: authors must have an email to be valid
# so they need to be in the form "Some name, another name, ... <email@address.com>"
git commit -v --author="$MOBSTERS <$USER_EMAIL>"</code></pre>
<div style="font-size: 2.0em">
<ol>
<li>
<a class="clipboard" data-clipboard-target="#copy">
Copy this script
</a>
into a file anywhere on your path.
</li>
<li>
Name it anything you like (<code>mob-commit</code>, for example).
</li>
<li>
Make sure it's executable with <code>chmod +x mob-commit</code> (or whatever you named your script).
</li>
<li>
Instead of <code>git commit</code>, now run <code>mob-commit</code>!
</li>
</ol>
Now your commit messages will look like this:
<pre>
<code>$ git log
commit 39d59e7e4c9acb021988b3040f9b7ace5f539b78
Author: James Kirk, Leonard McCoy, Spock <example@example.com>
Date: Fri Mar 3 21:00:25 2017 -0500
Set phasers to stun.</code>
</pre>
</div>
</div>
</body>
<script>
const { app, ipcRenderer } = require('electron')
let onMac = /Mac/.test(navigator.platform)
const Clipboard = require('clipboard')
$(document).ready(function() {
let activeMobstersPath = ipcRenderer.sendSync('get-active-mobsters-path')
$('.active-mobsters-path').text(activeMobstersPath)
var clipboard = new Clipboard('.clipboard')
})
</script>
<script src="./assets/js/bootstrap337.min.js" crossorigin="anonymous"></script>
</html>