Skip to content

Commit 2cc2df2

Browse files
committed
doc: pickup credential helpers and other updates
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 345f6e8 commit 2cc2df2

File tree

17 files changed

+1080
-787
lines changed

17 files changed

+1080
-787
lines changed

share/doc/git-cola/git-cola.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,50 @@ Defaults to "#bbbbbb"::
958958

959959
git config cola.color.header '#bbbbbb'
960960

961+
commit.cleanup
962+
--------------
963+
Configure whether commit messages should be stripped of whitespace and comments.
964+
965+
Valid values are ``strip``, ``whitespace``, ``verbatim``, ``scissors`` or ``default``.
966+
967+
The ``default`` mode uses the ``whitespace`` mode when committing through Git Cola
968+
and the ``strip`` mode when committing using the ``git commit`` command-line.
969+
970+
* ``strip`` - Strip leading and trailing empty lines, trailing whitespace,
971+
commentary and collapse consecutive empty lines.
972+
973+
* ``whitespace`` - Same as strip except ``# commentary`` is not removed.
974+
This is the ``default`` behavior when committing through `Git Cola`.
975+
976+
* ``verbatim`` - Do not change the message at all.
977+
978+
* ``scissors`` - Same as whitespace except that everything from (and including)
979+
the line found below is truncated, if the message is to be edited.
980+
"#" can be customized with ``core.commentChar``::
981+
982+
# ------------------------ >8 ------------------------
983+
Scissor-lines and all following lines are removed.
984+
985+
Changing the mode to ``whitespace`` can be useful when you always want to keep
986+
lines that begin with comment character ``#`` in your log message, even when
987+
committing using the command-line ``git commit``.
988+
989+
On the contrary, if you always want to always strip comments, even when
990+
committing through Git Cola, then configure ``commit.cleanup`` to ``strip``.
991+
992+
Please see the `git commit cleanup mode documentation
993+
<https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---cleanupltmodegt>`_
994+
for more details.
995+
996+
core.commentChar
997+
----------------
998+
Commit messages can contain comments that start with this character.
999+
Defaults to ``#``.
1000+
1001+
Please see the `git config documentation
1002+
<https://git-scm.com/docs/git-config#Documentation/git-config.txt-corecommentChar>`_
1003+
for more details.
1004+
9611005
core.hooksPath
9621006
--------------
9631007
Hooks are programs you can place in a hooks directory to trigger actions at
@@ -1164,6 +1208,15 @@ Avoid creating shortcuts that conflict with existing built-in `git cola`
11641208
shortcuts. Creating a conflict will result in no action when the shortcut
11651209
is used.
11661210

1211+
SETTING UP CREDENTIAL HELPERS
1212+
=============================
1213+
Git has robust support for automatically handling credentials.
1214+
1215+
The recommended approach is to use SSH keys and an SSH agent, but any of the core Git
1216+
Credentials helpers will get used automatically by Git Cola.
1217+
1218+
See https://git-scm.com/doc/credential-helpers for more details.
1219+
11671220
SETTING UP GPG FOR SIGNED COMMITS
11681221
=================================
11691222
When creating signed commits, `gpg` will attempt to read your password from the

share/doc/git-cola/hotkeys.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<td>Stage untracked files</td>
8181
</tr>
8282
<tr>
83-
<td class="shortcut">Ctrl + U</td>
83+
<td class="shortcut">Ctrl + U / Alt + Shift + R</td>
8484
<td>:</td>
8585
<td>Revert the selected lines, or the diff hunk beneath the text cursor when nothing
8686
is selected, from the worktree</td>

share/doc/git-cola/hotkeys_de.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<td>Alle neuen Dateien vormerken</td>
8282
</tr>
8383
<tr>
84-
<td class="shortcut">Ctrl + U</td>
84+
<td class="shortcut">Ctrl + U / Alt + Shift + R</td>
8585
<td>:</td>
8686
<!-- TODO -->
8787
<td>Revert the selected lines, or the diff hunk beneath the text cursor when nothing

share/doc/git-cola/hotkeys_zh_CN.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<td>缓存未追踪项目</td>
8282
</tr>
8383
<tr>
84-
<td class="shortcut">Ctrl + U</td>
84+
<td class="shortcut">Ctrl + U / Alt + Shift + R</td>
8585
<td>:</td>
8686
<td>还原缓存改动</td>
8787
</tr>

share/doc/git-cola/hotkeys_zh_TW.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<td>將尚未追蹤其版本的項目移動到版本提交準備區域</td>
8282
</tr>
8383
<tr>
84-
<td class="shortcut">Ctrl + U</td>
84+
<td class="shortcut">Ctrl + U / Alt + Shift + R</td>
8585
<td>:</td>
8686
<td>還原尚未移入版本提交準備區域的內容變動</td>
8787
</tr>

share/doc/git-cola/html/git-cola.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@
176176
<li class="toctree-l3"><a class="reference internal" href="#cola-color-add">cola.color.add</a></li>
177177
<li class="toctree-l3"><a class="reference internal" href="#cola-color-remove">cola.color.remove</a></li>
178178
<li class="toctree-l3"><a class="reference internal" href="#cola-color-header">cola.color.header</a></li>
179+
<li class="toctree-l3"><a class="reference internal" href="#commit-cleanup">commit.cleanup</a></li>
180+
<li class="toctree-l3"><a class="reference internal" href="#core-commentchar">core.commentChar</a></li>
179181
<li class="toctree-l3"><a class="reference internal" href="#core-hookspath">core.hooksPath</a></li>
180182
<li class="toctree-l3"><a class="reference internal" href="#gui-diffcontext">gui.diffcontext</a></li>
181183
<li class="toctree-l3"><a class="reference internal" href="#gui-displayuntracked">gui.displayuntracked</a></li>
@@ -210,6 +212,7 @@
210212
<li class="toctree-l3"><a class="reference internal" href="#guitool-name-shortcut">guitool.&lt;name&gt;.shortcut</a></li>
211213
</ul>
212214
</li>
215+
<li class="toctree-l2"><a class="reference internal" href="#setting-up-credential-helpers">SETTING UP CREDENTIAL HELPERS</a></li>
213216
<li class="toctree-l2"><a class="reference internal" href="#setting-up-gpg-for-signed-commits">SETTING UP GPG FOR SIGNED COMMITS</a><ul>
214217
<li class="toctree-l3"><a class="reference internal" href="#install-gpg-agent-and-friends">Install gpg-agent and friends</a></li>
215218
<li class="toctree-l3"><a class="reference internal" href="#configure-gpg-agent-and-a-pin-entry-program">Configure gpg-agent and a pin-entry program</a></li>
@@ -1148,6 +1151,42 @@ <h3>cola.color.header<a class="headerlink" href="#cola-color-header" title="Perm
11481151
</pre></div>
11491152
</div>
11501153
</section>
1154+
<section id="commit-cleanup">
1155+
<h3>commit.cleanup<a class="headerlink" href="#commit-cleanup" title="Permalink to this heading"></a></h3>
1156+
<p>Configure whether commit messages should be stripped of whitespace and comments.</p>
1157+
<p>Valid values are <code class="docutils literal notranslate"><span class="pre">strip</span></code>, <code class="docutils literal notranslate"><span class="pre">whitespace</span></code>, <code class="docutils literal notranslate"><span class="pre">verbatim</span></code>, <code class="docutils literal notranslate"><span class="pre">scissors</span></code> or <code class="docutils literal notranslate"><span class="pre">default</span></code>.</p>
1158+
<p>The <code class="docutils literal notranslate"><span class="pre">default</span></code> mode uses the <code class="docutils literal notranslate"><span class="pre">whitespace</span></code> mode when committing through Git Cola
1159+
and the <code class="docutils literal notranslate"><span class="pre">strip</span></code> mode when committing using the <code class="docutils literal notranslate"><span class="pre">git</span> <span class="pre">commit</span></code> command-line.</p>
1160+
<ul>
1161+
<li><p><code class="docutils literal notranslate"><span class="pre">strip</span></code> - Strip leading and trailing empty lines, trailing whitespace,
1162+
commentary and collapse consecutive empty lines.</p></li>
1163+
<li><p><code class="docutils literal notranslate"><span class="pre">whitespace</span></code> - Same as strip except <code class="docutils literal notranslate"><span class="pre">#</span> <span class="pre">commentary</span></code> is not removed.
1164+
This is the <code class="docutils literal notranslate"><span class="pre">default</span></code> behavior when committing through <cite>Git Cola</cite>.</p></li>
1165+
<li><p><code class="docutils literal notranslate"><span class="pre">verbatim</span></code> - Do not change the message at all.</p></li>
1166+
<li><p><code class="docutils literal notranslate"><span class="pre">scissors</span></code> - Same as whitespace except that everything from (and including)
1167+
the line found below is truncated, if the message is to be edited.
1168+
“#” can be customized with <code class="docutils literal notranslate"><span class="pre">core.commentChar</span></code>:</p>
1169+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># ------------------------ &gt;8 ------------------------</span>
1170+
<span class="n">Scissor</span><span class="o">-</span><span class="n">lines</span> <span class="ow">and</span> <span class="nb">all</span> <span class="n">following</span> <span class="n">lines</span> <span class="n">are</span> <span class="n">removed</span><span class="o">.</span>
1171+
</pre></div>
1172+
</div>
1173+
</li>
1174+
</ul>
1175+
<p>Changing the mode to <code class="docutils literal notranslate"><span class="pre">whitespace</span></code> can be useful when you always want to keep
1176+
lines that begin with comment character <code class="docutils literal notranslate"><span class="pre">#</span></code> in your log message, even when
1177+
committing using the command-line <code class="docutils literal notranslate"><span class="pre">git</span> <span class="pre">commit</span></code>.</p>
1178+
<p>On the contrary, if you always want to always strip comments, even when
1179+
committing through Git Cola, then configure <code class="docutils literal notranslate"><span class="pre">commit.cleanup</span></code> to <code class="docutils literal notranslate"><span class="pre">strip</span></code>.</p>
1180+
<p>Please see the <a class="reference external" href="https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---cleanupltmodegt">git commit cleanup mode documentation</a>
1181+
for more details.</p>
1182+
</section>
1183+
<section id="core-commentchar">
1184+
<h3>core.commentChar<a class="headerlink" href="#core-commentchar" title="Permalink to this heading"></a></h3>
1185+
<p>Commit messages can contain comments that start with this character.
1186+
Defaults to <code class="docutils literal notranslate"><span class="pre">#</span></code>.</p>
1187+
<p>Please see the <a class="reference external" href="https://git-scm.com/docs/git-config#Documentation/git-config.txt-corecommentChar">git config documentation</a>
1188+
for more details.</p>
1189+
</section>
11511190
<section id="core-hookspath">
11521191
<h3>core.hooksPath<a class="headerlink" href="#core-hookspath" title="Permalink to this heading"></a></h3>
11531192
<p>Hooks are programs you can place in a hooks directory to trigger actions at
@@ -1346,6 +1385,13 @@ <h3>guitool.&lt;name&gt;.shortcut<a class="headerlink" href="#guitool-name-short
13461385
is used.</p>
13471386
</section>
13481387
</section>
1388+
<section id="setting-up-credential-helpers">
1389+
<h2>SETTING UP CREDENTIAL HELPERS<a class="headerlink" href="#setting-up-credential-helpers" title="Permalink to this heading"></a></h2>
1390+
<p>Git has robust support for automatically handling credentials.</p>
1391+
<p>The recommended approach is to use SSH keys and an SSH agent, but any of the core Git
1392+
Credentials helpers will get used automatically by Git Cola.</p>
1393+
<p>See <a class="reference external" href="https://git-scm.com/doc/credential-helpers">https://git-scm.com/doc/credential-helpers</a> for more details.</p>
1394+
</section>
13491395
<section id="setting-up-gpg-for-signed-commits">
13501396
<h2>SETTING UP GPG FOR SIGNED COMMITS<a class="headerlink" href="#setting-up-gpg-for-signed-commits" title="Permalink to this heading"></a></h2>
13511397
<p>When creating signed commits, <cite>gpg</cite> will attempt to read your password from the

share/doc/git-cola/html/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ <h1>Git Cola Documentation<a class="headerlink" href="#git-cola-documentation" t
191191
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#cola-color-add">cola.color.add</a></li>
192192
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#cola-color-remove">cola.color.remove</a></li>
193193
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#cola-color-header">cola.color.header</a></li>
194+
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#commit-cleanup">commit.cleanup</a></li>
195+
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#core-commentchar">core.commentChar</a></li>
194196
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#core-hookspath">core.hooksPath</a></li>
195197
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#gui-diffcontext">gui.diffcontext</a></li>
196198
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#gui-displayuntracked">gui.displayuntracked</a></li>
@@ -225,6 +227,7 @@ <h1>Git Cola Documentation<a class="headerlink" href="#git-cola-documentation" t
225227
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#guitool-name-shortcut">guitool.&lt;name&gt;.shortcut</a></li>
226228
</ul>
227229
</li>
230+
<li class="toctree-l2"><a class="reference internal" href="git-cola.html#setting-up-credential-helpers">SETTING UP CREDENTIAL HELPERS</a></li>
228231
<li class="toctree-l2"><a class="reference internal" href="git-cola.html#setting-up-gpg-for-signed-commits">SETTING UP GPG FOR SIGNED COMMITS</a><ul>
229232
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#install-gpg-agent-and-friends">Install gpg-agent and friends</a></li>
230233
<li class="toctree-l3"><a class="reference internal" href="git-cola.html#configure-gpg-agent-and-a-pin-entry-program">Configure gpg-agent and a pin-entry program</a></li>
@@ -275,6 +278,7 @@ <h2>Release Notes<a class="headerlink" href="#release-notes" title="Permalink to
275278
<li class="toctree-l1"><a class="reference internal" href="relnotes.html">Releases</a><ul>
276279
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#latest-release">Latest Release</a></li>
277280
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#development-version">Development version</a></li>
281+
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#v4-4-0">v4.4.0</a></li>
278282
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#v4-3-2">v4.3.2</a></li>
279283
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#v4-3-1">v4.3.1</a></li>
280284
<li class="toctree-l2"><a class="reference internal" href="relnotes.html#v4-3-0">v4.3.0</a></li>
5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)