Skip to content

Commit

Permalink
GIT 0.99.9h
Browse files Browse the repository at this point in the history
This is GIT 1.0-rc1 in disguise.  It is plausible that
relatively new parts of the system still need tweaking and
fixing, but that is why it is not 1.0 but rc ;-).

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 12, 2005
2 parents 23ea3e2 + 7765e7e commit f7a2eb7
Show file tree
Hide file tree
Showing 53 changed files with 1,347 additions and 220 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ git-index-pack
git-init-db
git-local-fetch
git-log
git-lost+found
git-ls-files
git-ls-remote
git-ls-tree
Expand All @@ -60,6 +61,7 @@ git-mktag
git-name-rev
git-mv
git-octopus
git-pack-redundant
git-pack-objects
git-parse-remote
git-patch-id
Expand Down
8 changes: 4 additions & 4 deletions Documentation/diff-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ git-diff-index <tree-ish>::
compares the <tree-ish> and the files on the filesystem.

git-diff-index --cached <tree-ish>::
compares the <tree-ish> and the cache.
compares the <tree-ish> and the index.

git-diff-tree [-r] <tree-ish-1> <tree-ish-2> [<pattern>...]::
compares the trees named by the two arguments.

git-diff-files [<pattern>...]::
compares the cache and the files on the filesystem.
compares the index and the files on the filesystem.


An output line is formatted this way:
Expand Down Expand Up @@ -47,7 +47,7 @@ That is, from the left to the right:
. an LF or a NUL when '-z' option is used, to terminate the record.

<sha1> is shown as all 0's if a file is new on the filesystem
and it is out of sync with the cache.
and it is out of sync with the index.

Example:

Expand Down Expand Up @@ -104,7 +104,7 @@ where:
The file parameters can point at the user's working file
(e.g. `new-file` in "git-diff-files"), `/dev/null` (e.g. `old-file`
when a new file is added), or a temporary file (e.g. `old-file` in the
cache). 'GIT_EXTERNAL_DIFF' should not worry about unlinking the
index). 'GIT_EXTERNAL_DIFF' should not worry about unlinking the
temporary file --- it is removed when 'GIT_EXTERNAL_DIFF' exits.

For a path that is unmerged, 'GIT_EXTERNAL_DIFF' is called with 1
Expand Down
2 changes: 1 addition & 1 deletion Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<orderfile>, which has one shell glob pattern per line.

-R::
Swap two inputs; that is, show differences from cache or
Swap two inputs; that is, show differences from index or
on-disk file to tree contents.

For more detailed explanation on these common options, see also
Expand Down
8 changes: 7 additions & 1 deletion Documentation/git-apply.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-apply - Apply patch on a git index file and a work tree

SYNOPSIS
--------
'git-apply' [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--index-info] [-z] [<patch>...]
'git-apply' [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--no-add] [--index-info] [-z] [<patch>...]

DESCRIPTION
-----------
Expand Down Expand Up @@ -72,6 +72,12 @@ OPTIONS
patch. Give this flag after those flags to also apply
the patch.

--no-add::
When applying a patch, ignore additions made by the
patch. This can be used to extract common part between
two files by first running `diff` on them and applying
the result with this option, which would apply the
deletion part but not addition part.

Author
------
Expand Down
14 changes: 7 additions & 7 deletions Documentation/git-checkout-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git-checkout-index(1)

NAME
----
git-checkout-index - Copy files from the cache to the working directory
git-checkout-index - Copy files from the index to the working directory


SYNOPSIS
Expand All @@ -13,23 +13,23 @@ SYNOPSIS

DESCRIPTION
-----------
Will copy all files listed from the cache to the working directory
Will copy all files listed from the index to the working directory
(not overwriting existing files).

OPTIONS
-------
-u::
update stat information for the checked out entries in
the cache file.
the index file.

-q::
be quiet if files exist or are not in the cache
be quiet if files exist or are not in the index

-f::
forces overwrite of existing files

-a::
checks out all files in the cache. Cannot be used
checks out all files in the index. Cannot be used
together with explicit filenames.

-n::
Expand Down Expand Up @@ -57,7 +57,7 @@ supposed to be able to do things like:

which will force all existing `*.h` files to be replaced with their
cached copies. If an empty command line implied "all", then this would
force-refresh everything in the cache, which was not the point.
force-refresh everything in the index, which was not the point.

To update and refresh only the files already checked out:

Expand All @@ -74,7 +74,7 @@ desired tree into the index, and do a

git-checkout-index --prefix=git-export-dir/ -a

and git-checkout-index will "export" the cache into the specified
and git-checkout-index will "export" the index into the specified
directory.

NOTE The final "/" is important. The exported name is literally just
Expand Down
12 changes: 7 additions & 5 deletions Documentation/git-clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-clone - Clones a repository.

SYNOPSIS
--------
'git-clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> <directory>
'git-clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> [<directory>]

DESCRIPTION
-----------
Expand Down Expand Up @@ -68,17 +68,19 @@ OPTIONS
be any URL git-fetch supports.

<directory>::
The name of a new directory to be cloned into. It is an
error to specify an existing directory.

The name of a new directory to clone into. The "humanish"
part of the source repository is used if no directory is
explicitly given ("repo" for "/path/to/repo.git" and "foo"
for "host.xz:foo/.git"). Cloning into an existing directory
is not allowed.

Author
------
Written by Linus Torvalds <torvalds@osdl.org>

Documentation
--------------
Documentation by Junio C Hamano.
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.


GIT
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-cvsimport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OPTIONS

-i::
Import-only: don't perform a checkout after importing. This option
ensures the working directory and cache remain untouched and will
ensures the working directory and index remain untouched and will
not create them if they do not exist.

-k::
Expand Down
6 changes: 3 additions & 3 deletions Documentation/git-diff-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git-diff-files(1)

NAME
----
git-diff-files - Compares files in the working tree and the cache
git-diff-files - Compares files in the working tree and the index


SYNOPSIS
Expand All @@ -12,9 +12,9 @@ SYNOPSIS

DESCRIPTION
-----------
Compares the files in the working tree and the cache. When paths
Compares the files in the working tree and the index. When paths
are specified, compares only those named paths. Otherwise all
entries in the cache are compared. The output format is the
entries in the index are compared. The output format is the
same as "git-diff-index" and "git-diff-tree".

OPTIONS
Expand Down
14 changes: 7 additions & 7 deletions Documentation/git-diff-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git-diff-index(1)

NAME
----
git-diff-index - Compares content and mode of blobs between the cache and repository
git-diff-index - Compares content and mode of blobs between the index and repository


SYNOPSIS
Expand All @@ -13,10 +13,10 @@ SYNOPSIS
DESCRIPTION
-----------
Compares the content and mode of the blobs found via a tree
object with the content of the current cache and, optionally
object with the content of the current index and, optionally
ignoring the stat state of the file on disk. When paths are
specified, compares only those named paths. Otherwise all
entries in the cache are compared.
entries in the index are compared.

OPTIONS
-------
Expand Down Expand Up @@ -49,11 +49,11 @@ Cached Mode
-----------
If '--cached' is specified, it allows you to ask:

show me the differences between HEAD and the current cache
show me the differences between HEAD and the current index
contents (the ones I'd write with a "git-write-tree")

For example, let's say that you have worked on your working directory, updated
some files in the cache and are ready to commit. You want to see eactly
some files in the index and are ready to commit. You want to see eactly
*what* you are going to commit is without having to write a new tree
object and compare it that way, and to do that, you just do

Expand Down Expand Up @@ -92,7 +92,7 @@ which is obviously a very useful question too, since that tells you what
you *could* commit. Again, the output matches the "git-diff-tree -r"
output to a tee, but with a twist.

The twist is that if some file doesn't match the cache, we don't have
The twist is that if some file doesn't match the index, we don't have
a backing store thing for it, and we use the magic "all-zero" sha1 to
show that. So let's say that you have edited `kernel/sched.c`, but
have not actually done a "git-update-index" on it yet - there is no
Expand All @@ -110,7 +110,7 @@ NOTE: As with other commands of this type, "git-diff-index" does not
actually look at the contents of the file at all. So maybe
`kernel/sched.c` hasn't actually changed, and it's just that you
touched it. In either case, it's a note that you need to
"git-upate-cache" it to make the cache be in sync.
"git-upate-index" it to make the index be in sync.

NOTE: You can have a mixture of files show up as "has been updated"
and "is still dirty in the working directory" together. You can always
Expand Down
6 changes: 5 additions & 1 deletion Documentation/git-diff-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-diff-tree - Compares the content and mode of blobs found via two tree object

SYNOPSIS
--------
'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [-r] [--root] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
'git-diff-tree' [--stdin] [-m] [-s] [-v] [--no-commit-id] [--pretty] [-t] [-r] [--root] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]

DESCRIPTION
-----------
Expand Down Expand Up @@ -74,6 +74,10 @@ separated with a single space are given.
commit message. Without "=<style>", it defaults to
medium.

--no-commit-id::
git-diff-tree outputs a line with the commit ID when
applicable. This flag suppressed the commit ID output.


Limiting Output
---------------
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-fsck-objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ index file and all SHA1 references in .git/refs/* as heads.
Report tags.

--cache::
Consider any object recorded in the cache also as a head node for
Consider any object recorded in the index also as a head node for
an unreachability trace.

--standalone::
Expand Down Expand Up @@ -125,7 +125,7 @@ GIT_OBJECT_DIRECTORY::
used to specify the object database root (usually $GIT_DIR/objects)

GIT_INDEX_FILE::
used to specify the index file of the cache
used to specify the index file of the index

GIT_ALTERNATE_OBJECT_DIRECTORIES::
used to specify additional object database roots (usually unset)
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-hash-object.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Computes the object ID value for an object with specified type
with the contents of the named file (which can be outside of the
work tree), and optionally writes the resulting object into the
object database. Reports its object ID to its standard output.
This is used by "git-cvsimport" to update the cache
This is used by "git-cvsimport" to update the index
without modifying files in the work tree. When <type> is not
specified, it defaults to "blob".

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

NAME
----
git-lost+found - Recover lost refs that luckily have not yet been pruned.

SYNOPSIS
--------
'git-lost+found'

DESCRIPTION
-----------
Finds dangling commits and tags from the object database, and
creates refs to them in .git/lost-found/ directory. Commits and
tags that dereference to commits go to .git/lost-found/commit
and others are stored in .git/lost-found/other directory.


OUTPUT
------
One line description from the commit and tag found along with
their object name are printed on the standard output.


EXAMPLE
-------

Suppose you run 'git tag -f' and mistyped the tag to overwrite.
The ref to your tag is overwritten, but until you run 'git
prune', it is still there.

------------
$ git lost+found
[1ef2b196d909eed523d4f3c9bf54b78cdd6843c6] GIT 0.99.9c
...
------------

Also you can use gitk to browse how they relate to each other
and existing (probably old) tags.

------------
$ gitk $(cd .git/lost-found/commit && echo ??*)
------------

After making sure that it is the object you are looking for, you
can reconnect it to your regular .git/refs hierarchy.

------------
$ git cat-file -t 1ef2b196
tag
$ git cat-file tag 1ef2b196
object fa41bbce8e38c67a218415de6cfa510c7e50032a
type commit
tag v0.99.9c
tagger Junio C Hamano <junkio@cox.net> 1131059594 -0800

GIT 0.99.9c

This contains the following changes from the "master" branch, since
...
$ git update-ref refs/tags/not-lost-anymore 1ef2b196
$ git rev-parse not-lost-anymore
1ef2b196d909eed523d4f3c9bf54b78cdd6843c6
------------

Author
------
Written by Junio C Hamano 濱野 純 <junkio@cox.net>

Documentation
--------------
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.


GIT
---
Part of the gitlink:git[7] suite
2 changes: 1 addition & 1 deletion Documentation/git-ls-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git-ls-files(1)

NAME
----
git-ls-files - Information about files in the cache/working directory
git-ls-files - Information about files in the index/working directory


SYNOPSIS
Expand Down
Loading

0 comments on commit f7a2eb7

Please sign in to comment.