Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  Update git-config documentation
  Fix unmatched emphasis tag in git-tutorial
  Update git-cherry-pick documentation
  Update git-archive documentation
  • Loading branch information
Junio C Hamano committed Apr 20, 2007
2 parents 851c603 + 9bc20aa commit 754eeb3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
5 changes: 4 additions & 1 deletion Documentation/git-archive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ OPTIONS
Format of the resulting archive: 'tar', 'zip'... The default
is 'tar'.

--list::
--list, -l::
Show all available formats.

--verbose, -v::
Report progress to stderr.

--prefix=<prefix>/::
Prepend <prefix>/ to each filename in the archive.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-cherry-pick.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ OPTIONS
development branch), adding this information can be
useful.

-r|--replay::
-r::
It used to be that the command defaulted to do `-x`
described above, and `-r` was to disable it. Now the
default is not to do `-x` so this option is a no-op.
Expand Down
24 changes: 14 additions & 10 deletions Documentation/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ git-config - Get and set repository or global options
SYNOPSIS
--------
[verse]
'git-config' [--global] [type] name [value [value_regex]]
'git-config' [--global] [type] --add name value
'git-config' [--global] [type] --replace-all name [value [value_regex]]
'git-config' [--global] [type] --get name [value_regex]
'git-config' [--global] [type] --get-all name [value_regex]
'git-config' [--global] [type] --unset name [value_regex]
'git-config' [--global] [type] --unset-all name [value_regex]
'git-config' [--global] [type] --rename-section old_name new_name
'git-config' [--global] [type] --remove-section name
'git-config' [--global] -l | --list
'git-config' [--system | --global] [type] name [value [value_regex]]
'git-config' [--system | --global] [type] --add name value
'git-config' [--system | --global] [type] --replace-all name [value [value_regex]]
'git-config' [--system | --global] [type] --get name [value_regex]
'git-config' [--system | --global] [type] --get-all name [value_regex]
'git-config' [--system | --global] [type] --unset name [value_regex]
'git-config' [--system | --global] [type] --unset-all name [value_regex]
'git-config' [--system | --global] [type] --rename-section old_name new_name
'git-config' [--system | --global] [type] --remove-section name
'git-config' [--system | --global] -l | --list

DESCRIPTION
-----------
Expand Down Expand Up @@ -76,6 +76,10 @@ OPTIONS
--global::
Use global ~/.gitconfig file rather than the repository .git/config.

--system::
Use system-wide $(prefix)/etc/gitconfig rather than the repository
.git/config.

--remove-section::
Remove the given section from the configuration file.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/tutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ make it real.
Note: don't forget to 'add' a file again if you modified it after the
first 'add' and before 'commit'. Otherwise only the previous added
state of that file will be committed. This is because git tracks
content, so what you're really 'add'ing to the commit is the *content*
content, so what you're really 'adding' to the commit is the *content*
of the file in the state it is in when you 'add' it.

2) By using 'git commit -a' directly
Expand Down
2 changes: 1 addition & 1 deletion builtin-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "cache.h"

static const char git_config_set_usage[] =
"git-config [ --global ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";
"git-config [ --global | --system ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";

static char *key;
static regex_t *key_regexp;
Expand Down

0 comments on commit 754eeb3

Please sign in to comment.