Skip to content

Commit

Permalink
Merge branch 'master' into js/fmt-patch
Browse files Browse the repository at this point in the history
* master: (119 commits)
  diff family: add --check option
  Document that "git add" only adds non-ignored files.
  Add a conversion tool to migrate remote information into the config
  fetch, pull: ask config for remote information
  Fix build procedure for builtin-init-db
  read-tree -m -u: do not overwrite or remove untracked working tree files.
  apply --cached: do not check newly added file in the working tree
  Implement a --dry-run option to git-quiltimport
  Implement git-quiltimport
  Revert "builtin-grep: workaround for non GNU grep."
  builtin-grep: workaround for non GNU grep.
  builtin-grep: workaround for non GNU grep.
  git-am: use apply --cached
  apply --cached: apply a patch without using working tree.
  apply --numstat: show new name, not old name.
  Documentation/Makefile: create tarballs for the man pages and html files
  Allow pickaxe and diff-filter options to be used by git log.
  Libify the index refresh logic
  Builtin git-init-db
  Remove unnecessary local in get_ref_sha1.
  ...
  • Loading branch information
Junio C Hamano committed May 21, 2006
2 parents e686eb9 + 8824689 commit 328b710
Show file tree
Hide file tree
Showing 93 changed files with 3,881 additions and 1,004 deletions.
4 changes: 2 additions & 2 deletions Documentation/SubmittingPatches
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ This recipe appears to work with the current [*1*] Thunderbird from Suse.
The following Thunderbird extensions are needed:
AboutConfig 0.5
http://aboutconfig.mozdev.org/
External Editor 0.5.4
http://extensionroom.mozdev.org/more-info/exteditor
External Editor 0.7.2
http://globs.org/articles.php?lng=en&pg=8

1) Prepare the patch as a text file using your method of choice.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/core-tutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ $ git show-branch --topo-order master mybranch
The first two lines indicate that it is showing the two branches
and the first line of the commit log message from their
top-of-the-tree commits, you are currently on `master` branch
(notice the asterisk `*` character), and the first column for
(notice the asterisk `\*` character), and the first column for
the later output lines is used to show commits contained in the
`master` branch, and the second column for the `mybranch`
branch. Three commits are shown along with their log messages.
Expand Down
4 changes: 4 additions & 0 deletions Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
--stat::
Generate a diffstat instead of a patch.

--summary::
Output a condensed summary of extended header information
such as creations, renames and mode changes.

--patch-with-stat::
Generate patch and prepend its diffstat.

Expand Down
5 changes: 4 additions & 1 deletion Documentation/git-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ DESCRIPTION
A simple wrapper for git-update-index to add files to the index,
for people used to do "cvs add".

It only adds non-ignored files, to add ignored files use
"git update-index --add".

OPTIONS
-------
<file>...::
Files to add to the index.
Files to add to the index (see gitlink:git-ls-files[1]).

-n::
Don't actually add the file(s), just show if they exist.
Expand Down Expand Up @@ -68,6 +70,7 @@ git-add git-*.sh::
See Also
--------
gitlink:git-rm[1]
gitlink:git-ls-files[1]

Author
------
Expand Down
5 changes: 4 additions & 1 deletion Documentation/git-clean.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ git-clean - Remove untracked files from the working tree
SYNOPSIS
--------
[verse]
'git-clean' [-d] [-n] [-q] [-x | -X]
'git-clean' [-d] [-n] [-q] [-x | -X] [--] <paths>...

DESCRIPTION
-----------
Removes files unknown to git. This allows to clean the working tree
from files that are not under version control. If the '-x' option is
specified, ignored files are also removed, allowing to remove all
build products.
When optional `<paths>...` arguments are given, the paths
affected are further limited to those that match them.


OPTIONS
-------
Expand Down
9 changes: 8 additions & 1 deletion Documentation/git-cvsexportcommit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-cvsexportcommit - Export a commit to a CVS checkout

SYNOPSIS
--------
'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [PARENTCOMMIT] COMMITID
'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID


DESCRIPTION
Expand Down Expand Up @@ -39,6 +39,13 @@ OPTIONS
Be pedantic (paranoid) when applying patches. Invokes patch with
--fuzz=0

-f::
Force the merge even if the files are not up to date.

-m::
Prepend the commit message with the provided prefix.
Useful for patch series and the like.

-v::
Verbose.

Expand Down
85 changes: 62 additions & 23 deletions Documentation/git-grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,82 @@ git-grep - Print lines matching a pattern

SYNOPSIS
--------
'git-grep' [<option>...] [-e] <pattern> [--] [<path>...]
[verse]
'git-grep' [--cached]
[-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
[-v | --invert-match]
[-E | --extended-regexp] [-G | --basic-regexp] [-F | --fixed-strings]
[-n] [-l | --files-with-matches] [-L | --files-without-match]
[-c | --count]
[-A <post-context>] [-B <pre-context>] [-C <context>]
[-f <file>] [-e <pattern>]
[<tree>...]
[--] [<path>...]

DESCRIPTION
-----------
Searches list of files `git-ls-files` produces for lines
containing a match to the given pattern.
Look for specified patterns in the working tree files, blobs
registered in the index file, or given tree objects.


OPTIONS
-------
`--`::
Signals the end of options; the rest of the parameters
are <path> limiters.
--cached::
Instead of searching in the working tree files, check
the blobs registerd in the index file.

-a | --text::
Process binary files as if they were text.

-i | --ignore-case::
Ignore case differences between the patterns and the
files.

-w | --word-regexp::
Match the pattern only at word boundary (either begin at the
beginning of a line, or preceded by a non-word character; end at
the end of a line or followed by a non-word character).

-v | --invert-match::
Select non-matching lines.

-E | --extended-regexp | -G | --basic-regexp::
Use POSIX extended/basic regexp for patterns. Default
is to use basic regexp.

<option>...::
Either an option to pass to `grep` or `git-ls-files`.
+
The following are the specific `git-ls-files` options
that may be given: `-o`, `--cached`, `--deleted`, `--others`,
`--killed`, `--ignored`, `--modified`, `--exclude=\*`,
`--exclude-from=\*`, and `--exclude-per-directory=\*`.
+
All other options will be passed to `grep`.
-n::
Prefix the line number to matching lines.

<pattern>::
The pattern to look for. The first non option is taken
as the pattern; if your pattern begins with a dash, use
`-e <pattern>`.
-l | --files-with-matches | -L | --files-without-match::
Instead of showing every matched line, show only the
names of files that contain (or do not contain) matches.

<path>...::
Optional paths to limit the set of files to be searched;
passed to `git-ls-files`.
-c | --count::
Instead of showing every matched line, show the number of
lines that match.

-[ABC] <context>::
Show `context` trailing (`A` -- after), or leading (`B`
-- before), or both (`C` -- context) lines, and place a
line containing `--` between continguous groups of
matches.

-f <file>::
Read patterns from <file>, one per line.

`<tree>...`::
Search blobs in the trees for specified patterns.

`--`::
Signals the end of options; the rest of the parameters
are <path> limiters.


Author
------
Written by Linus Torvalds <torvalds@osdl.org>
Originally written by Linus Torvalds <torvalds@osdl.org>, later
revamped by Junio C Hamano.


Documentation
--------------
Expand Down
18 changes: 14 additions & 4 deletions Documentation/git-merge-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@ git-merge-base - Finds as good a common ancestor as possible for a merge

SYNOPSIS
--------
'git-merge-base' <commit> <commit>
'git-merge-base' [--all] <commit> <commit>

DESCRIPTION
-----------
"git-merge-base" finds as good a common ancestor as possible. Given a
selection of equally good common ancestors it should not be relied on
to decide in any particular way.

"git-merge-base" finds as good a common ancestor as possible between
the two commits. That is, given two commits A and B 'git-merge-base A
B' will output a commit which is reachable from both A and B through
the parent relationship.

Given a selection of equally good common ancestors it should not be
relied on to decide in any particular way.

The "git-merge-base" algorithm is still in flux - use the source...

OPTIONS
-------
--all::
Output all common ancestors for the two commits instead of
just one.

Author
------
Expand Down
61 changes: 61 additions & 0 deletions Documentation/git-quiltimport.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
git-quiltimport(1)
================

NAME
----
git-quiltimport - Applies a quilt patchset onto the current branch


SYNOPSIS
--------
[verse]
'git-quiltimport' [--dry-run] [--author <author>] [--patches <dir>]


DESCRIPTION
-----------
Applies a quilt patchset onto the current git branch, preserving
the patch boundaries, patch order, and patch descriptions present
in the quilt patchset.

For each patch the code attempts to extract the author from the
patch description. If that fails it falls back to the author
specified with --author. If the --author flag was not given
the patch description is displayed and the user is asked to
interactively enter the author of the patch.

If a subject is not found in the patch description the patch name is
preserved as the 1 line subject in the git description.

OPTIONS
-------
--dry-run::
Walk through the patches in the series and warn
if we cannot find all of the necessary information to commit
a patch. At the time of this writing only missing author
information is warned about.

--author Author Name <Author Email>::
The author name and email address to use when no author
information can be found in the patch description.

--patches <dir>::
The directory to find the quilt patches and the
quilt series file.

The default for the patch directory is patches
or the value of the $QUILT_PATCHES environment
variable.

Author
------
Written by Eric Biederman <ebiederm@lnxi.com>

Documentation
--------------
Documentation by Eric Biederman <ebiederm@lnxi.com>

GIT
---
Part of the gitlink:git[7] suite

11 changes: 5 additions & 6 deletions Documentation/git-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ SYNOPSIS
--------
'git-rebase' [--onto <newbase>] <upstream> [<branch>]

'git-rebase' --continue

'git-rebase' --abort
'git-rebase' --continue | --skip | --abort

DESCRIPTION
-----------
Expand All @@ -23,9 +21,10 @@ not exist in the <upstream> branch.

It is possible that a merge failure will prevent this process from being
completely automatic. You will have to resolve any such merge failure
and run `git rebase --continue`. If you can not resolve the merge
failure, running `git rebase --abort` will restore the original <branch>
and remove the working files found in the .dotest directory.
and run `git rebase --continue`. Another option is to bypass the commit
that caused the merge failure with `git rebase --skip`. To restore the
original <branch> and remove the .dotest working files, use the command
`git rebase --abort` instead.

Note that if <branch> is not specified on the command line, the currently
checked out branch is used.
Expand Down
9 changes: 5 additions & 4 deletions Documentation/git-repo-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ You can query/set/replace/unset options with this command. The name is
actually the section and the key separated by a dot, and the value will be
escaped.

If you want to set/unset an option which can occur on multiple lines, you
should provide a POSIX regex for the value. If you want to handle the lines
*not* matching the regex, just prepend a single exclamation mark in front
(see EXAMPLES).
If you want to set/unset an option which can occur on multiple
lines, a POSIX regexp `value_regex` needs to be given. Only the
existing values that match the regexp are updated or unset. If
you want to handle the lines that do *not* match the regex, just
prepend a single exclamation mark in front (see EXAMPLES).

The type specifier can be either '--int' or '--bool', which will make
'git-repo-config' ensure that the variable(s) are of the given type and
Expand Down
7 changes: 4 additions & 3 deletions Documentation/git-rev-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ OPTIONS
--bisect::
Limit output to the one commit object which is roughly halfway
between the included and excluded commits. Thus, if 'git-rev-list
--bisect foo ^bar ^baz' outputs 'midpoint', the output
of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint
^bar ^baz' would be of roughly the same length. Finding the change
--bisect foo {caret}bar {caret}baz' outputs 'midpoint', the output
of 'git-rev-list foo {caret}midpoint' and 'git-rev-list midpoint
{caret}bar {caret}baz' would be of roughly the same length.
Finding the change
which introduces a regression is thus reduced to a binary search:
repeatedly generate and test new 'midpoint's until the commit chain
is of length one.
Expand Down
9 changes: 9 additions & 0 deletions Documentation/git-rev-parse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ OPTIONS
--all::
Show all refs found in `$GIT_DIR/refs`.

--branches::
Show branch refs found in `$GIT_DIR/refs/heads`.

--tags::
Show tag refs found in `$GIT_DIR/refs/tags`.

--remotes::
Show tag refs found in `$GIT_DIR/refs/remotes`.

--show-prefix::
When the command is invoked from a subdirectory, show the
path of the current directory relative to the top-level
Expand Down
6 changes: 5 additions & 1 deletion Documentation/git-update-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SYNOPSIS
[--cacheinfo <mode> <object> <file>]\*
[--chmod=(+|-)x]
[--assume-unchanged | --no-assume-unchanged]
[--really-refresh] [--unresolve]
[--really-refresh] [--unresolve] [--again]
[--info-only] [--index-info]
[-z] [--stdin]
[--verbose]
Expand Down Expand Up @@ -80,6 +80,10 @@ OPTIONS
filesystem that has very slow lstat(2) system call
(e.g. cifs).

--again::
Runs `git-update-index` itself on the paths whose index
entries are different from those from the `HEAD` commit.

--unresolve::
Restores the 'unmerged' or 'needs updating' state of a
file during a merge if it was cleared by accident.
Expand Down
Loading

0 comments on commit 328b710

Please sign in to comment.