Browse Source

Use "whitespace" consistently

For consistency, change "white space" and "whitespaces" to
"whitespace", fixing a couple of adjacent grammar problems in the
docs.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Wincent Colaiuta 17 years ago committed by Junio C Hamano
parent
commit
0ac7903ee3
  1. 12
      Documentation/diff-options.txt
  2. 3
      Documentation/glossary.txt
  3. 4
      diff.c

12
Documentation/diff-options.txt

@ -175,19 +175,19 @@ endif::git-format-patch[]
Shorthand for "--text". Shorthand for "--text".


--ignore-space-at-eol:: --ignore-space-at-eol::
Ignore changes in white spaces at EOL. Ignore changes in whitespace at EOL.


--ignore-space-change:: --ignore-space-change::
Ignore changes in amount of white space. This ignores white Ignore changes in amount of whitespace. This ignores whitespace
space at line end, and consider all other sequences of one or at line end, and considers all other sequences of one or
more white space characters to be equivalent. more whitespace characters to be equivalent.


-b:: -b::
Shorthand for "--ignore-space-change". Shorthand for "--ignore-space-change".


--ignore-all-space:: --ignore-all-space::
Ignore white space when comparing lines. This ignores Ignore whitespace when comparing lines. This ignores
difference even if one line has white space where the other differences even if one line has whitespace where the other
line has none. line has none.


-w:: -w::

3
Documentation/glossary.txt

@ -244,8 +244,7 @@ This commit is referred to as a "merge commit", or sometimes just a
The unique identifier of an <<def_object,object>>. The <<def_hash,hash>> The unique identifier of an <<def_object,object>>. The <<def_hash,hash>>
of the object's contents using the Secure Hash Algorithm of the object's contents using the Secure Hash Algorithm
1 and usually represented by the 40 character hexadecimal encoding of 1 and usually represented by the 40 character hexadecimal encoding of
the <<def_hash,hash>> of the object (possibly followed by the <<def_hash,hash>> of the object.
a white space).


[[def_object_type]]object type:: [[def_object_type]]object type::
One of the identifiers One of the identifiers

4
diff.c

@ -1015,7 +1015,7 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len)
if (line[i - 1] == '\t' && spaces) if (line[i - 1] == '\t' && spaces)
space_before_tab = 1; space_before_tab = 1;


/* check white space at line end */ /* check whitespace at line end */
if (line[len - 1] == '\n') if (line[len - 1] == '\n')
len--; len--;
if (isspace(line[len - 1])) if (isspace(line[len - 1]))
@ -1029,7 +1029,7 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len)
putchar(','); putchar(',');
} }
if (white_space_at_end) if (white_space_at_end)
printf("white space at end"); printf("whitespace at end");
printf(":%s ", reset); printf(":%s ", reset);
emit_line_with_ws(1, set, reset, ws, line, len, emit_line_with_ws(1, set, reset, ws, line, len,
data->ws_rule); data->ws_rule);

Loading…
Cancel
Save