Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 7e872d2

Browse files
committed
Merge pull request #196 from kasal/msysgit-2.0.0
msysGit rebased to the just released v2.0.0
2 parents 6679ea9 + 4e64cd8 commit 7e872d2

File tree

380 files changed

+20742
-18567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+20742
-18567
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
/test-dump-cache-tree
183183
/test-scrap-cache-tree
184184
/test-genrandom
185+
/test-hashmap
185186
/test-index-version
186187
/test-line-buffer
187188
/test-match-trees

Documentation/CodingGuidelines

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ For C programs:
126126
"char * string". This makes it easier to understand code
127127
like "char *string, c;".
128128

129+
- Use whitespace around operators and keywords, but not inside
130+
parentheses and not around functions. So:
131+
132+
while (condition)
133+
func(bar + 1);
134+
135+
and not:
136+
137+
while( condition )
138+
func (bar+1);
139+
129140
- We avoid using braces unnecessarily. I.e.
130141

131142
if (bla) {
@@ -153,6 +164,16 @@ For C programs:
153164
* multi-line comment.
154165
*/
155166

167+
Note however that a comment that explains a translatable string to
168+
translators uses a convention of starting with a magic token
169+
"TRANSLATORS: " immediately after the opening delimiter, even when
170+
it spans multiple lines. We do not add an asterisk at the beginning
171+
of each line, either. E.g.
172+
173+
/* TRANSLATORS: here is a comment that explains the string
174+
to be translated, that follows immediately after it */
175+
_("Here is a translatable string explained by the above.");
176+
156177
- Double negation is often harder to understand than no negation
157178
at all.
158179

0 commit comments

Comments
 (0)