Skip to content

Commit b0d12fc

Browse files
boklmgitster
authored andcommitted
Use the word 'stuck' instead of 'sticked'
The past participle of 'stick' is 'stuck'. Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3d092bf commit b0d12fc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Documentation/gitcli.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ scripting Git:
7272
* splitting short options to separate words (prefer `git foo -a -b`
7373
to `git foo -ab`, the latter may not even work).
7474

75-
* when a command line option takes an argument, use the 'sticked' form. In
75+
* when a command line option takes an argument, use the 'stuck' form. In
7676
other words, write `git foo -oArg` instead of `git foo -o Arg` for short
7777
options, and `git foo --long-opt=Arg` instead of `git foo --long-opt Arg`
7878
for long options. An option that takes optional option-argument must be
79-
written in the 'sticked' form.
79+
written in the 'stuck' form.
8080

8181
* when you give a revision parameter to a command, make sure the parameter is
8282
not ambiguous with a name of a file in the work tree. E.g. do not write
@@ -165,7 +165,7 @@ $ git foo -o Arg
165165
----------------------------
166166

167167
However, this is *NOT* allowed for switches with an optional value, where the
168-
'sticked' form must be used:
168+
'stuck' form must be used:
169169
----------------------------
170170
$ git describe --abbrev HEAD # correct
171171
$ git describe --abbrev=10 HEAD # correct

Documentation/technical/api-parse-options.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ that allow to change the behavior of a command.
2929

3030
The parse-options API allows:
3131

32-
* 'sticked' and 'separate form' of options with arguments.
33-
`-oArg` is sticked, `-o Arg` is separate form.
34-
`--option=Arg` is sticked, `--option Arg` is separate form.
32+
* 'stuck' and 'separate form' of options with arguments.
33+
`-oArg` is stuck, `-o Arg` is separate form.
34+
`--option=Arg` is stuck, `--option Arg` is separate form.
3535

3636
* Long options may be 'abbreviated', as long as the abbreviation
3737
is unambiguous.

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,7 @@ int parse_long_opt(const char *opt, const char **argv,
33943394
if (prefixcmp(arg, opt))
33953395
return 0;
33963396
arg += strlen(opt);
3397-
if (*arg == '=') { /* sticked form: --option=value */
3397+
if (*arg == '=') { /* stuck form: --option=value */
33983398
*optarg = arg + 1;
33993399
return 1;
34003400
}

diff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ extern struct diff_filepair *diff_unmerge(struct diff_options *, const char *pat
244244
#define DIFF_SETUP_USE_SIZE_CACHE 4
245245

246246
/*
247-
* Poor man's alternative to parse-option, to allow both sticked form
247+
* Poor man's alternative to parse-option, to allow both stuck form
248248
* (--option=value) and separate form (--option value).
249249
*/
250250
extern int parse_long_opt(const char *opt, const char **argv,

0 commit comments

Comments
 (0)