aboutsummaryrefslogtreecommitdiffstats
path: root/using-git.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-16 12:56:34 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-16 12:56:34 +0200
commita0a8d25dabf35231dcbe3b3f5f973609ba4e5add (patch)
tree31473b1cfc6442817983c337f53ca2023922226b /using-git.texinfo
parenttypo (diff)
downloadusing-git-a0a8d25dabf35231dcbe3b3f5f973609ba4e5add.tar.gz
using-git-a0a8d25dabf35231dcbe3b3f5f973609ba4e5add.tar.bz2
using-git-a0a8d25dabf35231dcbe3b3f5f973609ba4e5add.tar.xz
writing commit messages
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'using-git.texinfo')
-rw-r--r--using-git.texinfo88
1 files changed, 87 insertions, 1 deletions
diff --git a/using-git.texinfo b/using-git.texinfo
index 6ebcba2..a6d1e39 100644
--- a/using-git.texinfo
+++ b/using-git.texinfo
@@ -1302,6 +1302,7 @@ is annoying.
@menu
* Additional tools::
* The binary problem::
+* Writing commit messages::
@end menu
@@ -1387,7 +1388,7 @@ binary} image format that is supported by
The GIMP.
@item Documentations
-Texinfo and TeX two very popular alternatives
+Texinfo and TeX are two very popular alternatives
to word editors such as Libre Office.
Texinfo is designed for manuals and books, and
@@ -1407,6 +1408,91 @@ prefered office system in academia.
+@node Writing commit messages
+@section Writing commit messages
+
+Commits are accompanied by messages. This
+both helps yourself and other developers to
+identify a specific commit of interest, as
+well as giving information about what is
+happening in the development process, so
+every developer can keep up to speed.
+
+Commit messages can also be used to create
+changelogs, where you create a change log
+from the commit history and filter out
+unimportant changes.
+
+Change logs and commit massages are generally
+written on the same style. A short message
+written in imperfect, optionally with additional
+larges paragraphs that goes more in depth.
+
+Even if your project is not in English it
+is preferable to keep your commit message
+as well as much as possible of your project
+(that is not visible to the user) in English.
+Assume your project is in Swedish, everyone
+that understands Swedish will be able to
+translate it to any other language. So far
+it would be okay to write anything in Swedish,
+but once it has been translate, for example
+to English, additional translators that do
+not understand Swedish can contribute with
+additional translators. Now it is perferable
+with English, while the translators can
+understand everything that are should translate
+they do not understand anything else.
+When translating a program it useful to be
+able to understand what the program does and
+not just want it prints so you can do more
+accurate translations, and sometimes just
+one translation is not enough to have en
+unambiguous understanding.
+
+It is preferable to commit as often as
+possible, however this interrupts your
+mind flow, so committing should take
+as short time as possible@footnote{Git is
+very friendly in this respect as create
+a commit is lightning fast, and photon
+fast in comparsing to other old school
+source control systems}. Because of this
+you may need to compromise your messages,
+one thing you can do is to not describe
+a fix bug if it should be obvious for
+the changeset@footnote{Can only be obvious
+from small changes}, after all if you
+do not understand a change you can always
+ask someone. Another thing you can do is
+to use some standard shorthands.
+
+@table @asis
+@item m
+Minor change.
+@item doc
+Add or change documentation.
+@item typo
+Fix a typo.
+@item spello
+Fix a spello.
+@item grammaro
+Fix a grammaro.
+@item +
+As well as, another logical change
+in the same commit.
+@end table
+
+If you want shorten the time it takes to
+create a commit, I personally recommend
+to have a short shell function for opening
+your text editor and stage the openned
+files when the editor exits. And create a
+shell function the runs
+@command{git commit -m "$*"}.
+
+
+
@node GNU Free Documentation License
@appendix GNU Free Documentation License
@include fdl.texinfo