gitweb.git
Avoid ugly linewrap in git helpRen\e,bi\e(B Scharfe Sun, 11 Feb 2007 13:29:58 +0000 (14:29 +0100)

Avoid ugly linewrap in git help

Some of the short help texts that are shown e.g. when running 'git'
without any parameters wrap on a 80-column terminal. They are just
one character over the line. This patch avoids it by decreasing the
number of spaces around the preceding command name from four to
three (on both sides for symmetry).

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Fixed some typos in git-repack docsMukund Sat, 10 Feb 2007 18:12:01 +0000 (23:42 +0530)

Fixed some typos in git-repack docs

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-svn: correctly handle boolean options via git-configEric Wong Sun, 11 Feb 2007 05:07:12 +0000 (21:07 -0800)

git-svn: correctly handle boolean options via git-config

We don't append a space after '--bool', so we can't expect
a regular expression to match the space.

Semi-noticed by Junio C Hamano :)

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Allow aliases to expand to shell commandsTheodore Ts'o Sun, 11 Feb 2007 00:33:58 +0000 (19:33 -0500)

Allow aliases to expand to shell commands

If the alias expansion is prefixed with an exclamation point, treat
it as a shell command which is run using system(3).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Print a sane error message if an alias expands to an... Theodore Ts'o Sun, 11 Feb 2007 00:33:57 +0000 (19:33 -0500)

Print a sane error message if an alias expands to an invalid git command

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>

diff_flush_name(): take struct diff_options parameter.Junio C Hamano Sat, 10 Feb 2007 06:18:19 +0000 (22:18 -0800)

diff_flush_name(): take struct diff_options parameter.

Among the low-level output functions called from flush_one_pair(),
this was the only function that did not take (filepair, options)
as arguments.

Signed-off-by: Junio C Hamano <junkio@cox.net>

wt_status_prepare(): clean up structure initialization.Junio C Hamano Sat, 10 Feb 2007 00:22:42 +0000 (16:22 -0800)

wt_status_prepare(): clean up structure initialization.

Otherwise it would be a pain to add members to it.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-fetch: document automatic tag following.Junio C Hamano Fri, 9 Feb 2007 23:41:35 +0000 (15:41 -0800)

git-fetch: document automatic tag following.

Signed-off-by: Junio C Hamano <junkio@cox.net>

remove mailmap.linuxNicolas Pitre Fri, 9 Feb 2007 17:18:28 +0000 (12:18 -0500)

remove mailmap.linux

This file is incomplete, unmaintained, and it doesn't belong in the GIT
package anyway.

A more complete version is already included in the Linux -mm tree and
is about to make its way into mainline RSN.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame.el: Autoupdate while editingDavid Kågedal Fri, 9 Feb 2007 08:22:19 +0000 (09:22 +0100)

git-blame.el: Autoupdate while editing

This adds the support for automatically updating the buffer while editing.
A configuration variable git-blame-autoupdate controls whether this should
be enabled or not.

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame.el: Doc fixes and cleanupDavid Kågedal Fri, 9 Feb 2007 08:21:51 +0000 (09:21 +0100)

git-blame.el: Doc fixes and cleanup

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame.el: blame unsaved changesDavid Kågedal Fri, 9 Feb 2007 08:21:32 +0000 (09:21 +0100)

git-blame.el: blame unsaved changes

Make git-blame use the current buffer contents for the blame, instead of
the saved file. This makes the blame correct even if there are unsaved
changes.

Also added a git-reblame command.

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame.el: improve color handlingDavid Kågedal Fri, 9 Feb 2007 08:21:03 +0000 (09:21 +0100)

git-blame.el: improve color handling

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Handle uncommitted changes and cache descriptionsDavid Kågedal Fri, 9 Feb 2007 08:20:38 +0000 (09:20 +0100)

Handle uncommitted changes and cache descriptions

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame: Change installation instructionsJakub Narebski Fri, 9 Feb 2007 08:19:59 +0000 (09:19 +0100)

git-blame: Change installation instructions

Change installation instructions to using either "(require 'git-blame)"
or appropriate autoload instruction in GNU Emacs init file, .emacs
This required adding "(provide 'git-blame)" at the end of git-blame.el
and adding [preliminary] docstring to `git-blame-mode' function for
consistency (to mark function as interactive in `autoload' we have to
provide docstring as DOCSTRING is third arg, and INTERACTIVE fourth,
and both are optional). `git-blame-mode' is marked to autoload.

While at it ensure that we add `git-blame-mode' to `minor-mode-alist'
only once (in a way that does not depend on `cl' package).

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame: Add Emacs Lisp file headers and GNU GPL... Jakub Narebski Fri, 9 Feb 2007 08:19:28 +0000 (09:19 +0100)

git-blame: Add Emacs Lisp file headers and GNU GPL boilerplate

Add Emacs Lisp file headers, according to "Coding Conventions" chapter
in Emacs Lisp Reference Manual and Elisp Area Convetions for
EmacsWiki:
http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions
Those include: copyright notice, GNU GPL boilerplate, description and
instalation instructions as provided in email and in commit message
introducing git-blame.el, compatibility notes from another email by
David Kågedal about what to change to use it in GNU Emacs 20, and
"git-blame ends here" to detect if file was truncated. First line
includes setting file encoding via first line local variable values
(file variables).

Added comment to "(require 'cl)" to note why it is needed; "Coding
Conventions" advises to avoid require the `cl' package of Common Lisp
extensions at run time.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Documentation/git-pull: describe default behaviour... Junio C Hamano Fri, 9 Feb 2007 07:35:43 +0000 (23:35 -0800)

Documentation/git-pull: describe default behaviour and config interactions

The way 'git pull' without explicit parameters work were not
explained well in any existing documentation.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-gui: Focus into blame panels on Mac OS.Shawn O. Pearce Fri, 9 Feb 2007 07:28:32 +0000 (02:28 -0500)

git-gui: Focus into blame panels on Mac OS.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

reflog: handle $name => remotes/%s/HEAD mapping consist... Junio C Hamano Fri, 9 Feb 2007 07:24:51 +0000 (23:24 -0800)

reflog: handle $name => remotes/%s/HEAD mapping consistently for logs

When refs/remotes/gfi/master and refs/remotes/gfi/HEAD exist,
and the latter is a symref that points at the former, dwim_ref()
resolves string "gfi" to "refs/remotes/gfi/master" as expected,
but dwim_log() does not understand "gfi@{1.day}" and needs to be
told "gfi/master@{1.day}". This is confusing.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-gui: Improve annotated file display.Shawn O. Pearce Fri, 9 Feb 2007 06:59:38 +0000 (01:59 -0500)

git-gui: Improve annotated file display.

Rather than trying to mark the background color of the line numbers
to show which lines have annotated data loaded, we now show a ruler
between the line numbers and the file data. This ruler is just 1
character wide and its background color is set to grey to denote
which lines have annotation ready. I had to make this change as I
kept loosing the annotation marker when a line was no longer colored
as part of the current selection.

We now color the lines blamed on the current commit in yellow, the
lines in the commit which came after (descendant) in red (hotter,
less tested) and the lines in the commit before (ancestor) in blue
(cooler, better tested).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Jump to the first annotation block as soon... Shawn O. Pearce Fri, 9 Feb 2007 03:41:51 +0000 (22:41 -0500)

git-gui: Jump to the first annotation block as soon as its available.

To help clue users into the fact that annotation data arrives
incrementally, and that they should try to locate the region
they want while the tool is running, we jump to the first line
of the first annotation if the user has not already clicked on
a line they are interested in and if the window is still looking
at the very top of the file.

Since it takes a second (at least on my PowerBook) to even generate
the first annotation for git-gui.sh, the user should have plenty of
time to adjust the scrollbar or click on a line even before we get
that first annotation record in, which allows the user to bypass
our automatic jumping.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Redesign the display of annotated files.Shawn O. Pearce Fri, 9 Feb 2007 02:39:27 +0000 (21:39 -0500)

git-gui: Redesign the display of annotated files.

Using 180 columns worth of screen space to display just 20 columns of
file data and 160 columns worth of annotation information is not
practically useful. Users need/want to see the file data, and have
the anotation associated with it displayed in a detail pane only when
they have focused on a particular region of the file.

Now our file viewer has a small 10-line high pane below the file
which shows the commit message for the commit this line was blamed
on. The columns have all been removed, except the current line
number column as that has some real value when trying to locate an
interesting block.

To keep the user entertained we have a progress meter in the status
bar of the viewer which lets them know how many lines have been
annotated, and how much has been completed. We use a grey background
on the line numbers for lines which we have obtained annotation from,
and we color all lines in the current commit with a yellow background,
so they stand out when scanning through the file. All other lines
are kept with a white background, making the yellow really pop.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

log --reflog: use dwim_logJohannes Schindelin Fri, 9 Feb 2007 00:28:23 +0000 (01:28 +0100)

log --reflog: use dwim_log

Since "git log origin/master" uses dwim_log() to match
"refs/remotes/origin/master", it makes sense to do that for
"git log --reflog", too.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

format-patch -n: make sorting easier by padding numberJohannes Schindelin Fri, 9 Feb 2007 00:43:54 +0000 (01:43 +0100)

format-patch -n: make sorting easier by padding number

Now, when format-patch outputs more than 9 patches, the numbers
are padded accordingly. Example:

[PATCH 009/167] The 9th patch of a series of 167

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-gui: Use git-config now over git-repo-config.Shawn O. Pearce Fri, 9 Feb 2007 00:53:36 +0000 (19:53 -0500)

git-gui: Use git-config now over git-repo-config.

Now that core Git has "renamed" git-repo-config to git-config,
we should do the same. I don't know how long core Git will
keep the repo-config command, and since git-gui's userbase
is so small and almost entirely on some flavor of 1.5.0-rc2
or later, where the rename has already taken place, it should
be OK to rename now.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Relabel the Add All action.Shawn O. Pearce Fri, 9 Feb 2007 00:44:49 +0000 (19:44 -0500)

git-gui: Relabel the Add All action.

One user that I spoke with recently was confused why the 'Add All'
button did not add all of his 'Changed But Not Updated' files.
The particular files in question were new, and thus not known to
Git. Since the 'Add All' routine only updates files which are
already tracked, they were not added automatically.

I suspect that calling this action 'Add Existing' would be less
confusing, so I'm renaming it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Select subcommands like git does.Shawn O. Pearce Fri, 9 Feb 2007 00:41:32 +0000 (19:41 -0500)

git-gui: Select subcommands like git does.

If we are invoked as `git-foo`, then we should run the `foo` subcommand,
as the user has made some sort of link from `git-foo` to our actual
program code. So we should honor their request.

If we are invoked as `git-gui foo`, the user has not made a link (or
did, but is not using it right now) so we should execute the `foo`
subcommand.

We now can start the single commit UI mode via `git-citool` and also
through `git gui citool`.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

log --reflog: honour --relative-dateJohannes Schindelin Thu, 8 Feb 2007 20:58:33 +0000 (21:58 +0100)

log --reflog: honour --relative-date

If you say "git log -g --relative-date", it is very likely that
you want to see the reflog names in terms of a relative date.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-gui: View blame from the command line.Shawn O. Pearce Fri, 9 Feb 2007 00:10:52 +0000 (19:10 -0500)

git-gui: View blame from the command line.

Viewing annotated files is one of those tasks that is relatively
difficult to do in a simple vt100 terminal emulator. The user
really wants to be able to browse through a lot of information,
and to interact with it by navigating through revisions.

Now users can start our file viewer with annotations by running
'git gui blame commit path', thereby seeing the contents of the
given file at the given commit. Right now I am being lazy by
not allowing the user to omit the commit name (and have us thus
assume HEAD).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

for_each_reflog_ent: be forgiving about missing messageJohannes Schindelin Thu, 8 Feb 2007 23:59:47 +0000 (00:59 +0100)

for_each_reflog_ent: be forgiving about missing message

Some reflogs are/were generated without a message; do not plainly
ignore those entries.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Merge branch 'master' of git://repo.or.cz/git/fastimportJunio C Hamano Thu, 8 Feb 2007 23:47:08 +0000 (15:47 -0800)

Merge branch 'master' of git://repo.or.cz/git/fastimport

* 'master' of git://repo.or.cz/git/fastimport:
tar archive frontend for fast-import.
Correct spelling of fast-import in docs.
Correct some language in fast-import documentation.
Correct ^0 asciidoc syntax in fast-import docs.

git reflog showLinus Torvalds Thu, 8 Feb 2007 17:51:56 +0000 (09:51 -0800)

git reflog show

It makes "git reflog [show]" act as

git log -g --pretty=oneline --abbrev-cmit

and is fairly straightforward. So you can just write

git reflog

or

git reflog show

and it will show you the reflog in a nice format.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>

add -C[NUM] to git-amMichael S. Tsirkin Thu, 8 Feb 2007 13:57:08 +0000 (15:57 +0200)

add -C[NUM] to git-am

Add -C[NUM] to git-am and git-rebase so that patches can be applied even
if context has changed a bit.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Update git-log and git-show documentationMichael S. Tsirkin Thu, 8 Feb 2007 23:22:21 +0000 (15:22 -0800)

Update git-log and git-show documentation

Point at where the options not so frequently used are found.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-gui: Optionally save commit buffer on exit.Shawn O. Pearce Thu, 8 Feb 2007 22:47:17 +0000 (17:47 -0500)

git-gui: Optionally save commit buffer on exit.

If the commit area does not exist, don't save the commit message to
a file, or the window geometry. The reason I'm doing this is I want
to make the main window entirely optional, such as if the user has
asked us to show a blame from the command line. In such cases the
commit area won't exist and trying to get its text would cause an
error.

If we are running without the commit message area, we cannot save
our window geometry either, as the root window '.' won't be a normal
commit window.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Separate transport/branch menus from multicommit.Shawn O. Pearce Thu, 8 Feb 2007 23:10:05 +0000 (18:10 -0500)

git-gui: Separate transport/branch menus from multicommit.

These are now controlled by the transport and branch options, rather
than the multicommit option.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Refactor single_commit to a proc.Shawn O. Pearce Thu, 8 Feb 2007 23:03:41 +0000 (18:03 -0500)

git-gui: Refactor single_commit to a proc.

This is a minor code cleanup to make working with what used to be the
$single_commit flag easier. Its also to better handle various UI
configurations, depending on command line parameters given by the
user, or perhaps user preferences.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Replace \ with \\ when showing paths.Shawn O. Pearce Thu, 8 Feb 2007 22:13:51 +0000 (17:13 -0500)

git-gui: Replace \ with \\ when showing paths.

We already replace \n with \\n so that Tk widgets don't start a new
display line with part of a file path which is just unlucky enough
to contain an LF. But then its confusing to read a path whose name
actually contains \n as literal characters. Escaping \ to \\ would
make that case display as \\n, clarifying the output.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Support keyboard traversal in browser.Shawn O. Pearce Thu, 8 Feb 2007 22:07:59 +0000 (17:07 -0500)

git-gui: Support keyboard traversal in browser.

Users want to navigate the file list shown in our branch browser
windows using the keyboard. So we now support basic traversal
with the arrow keys:

Up/Down: Move the "selection bar" to focus on a different name.

Return: Move into the subtree, or open the annotated file.
M1-Right: Ditto.

M1-Up: Move to the parent tree.
M1-Left: Ditto.

Probably the only feature missing from this is to key a leading part
of the file name and jump directly to that file (or subtree).

This change did require a bit of refactoring, to pull the navigation
logic out of the mouse click procedure and into more generic routines
which can also be used in bindings.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Update known branches during rescan.Shawn O. Pearce Thu, 8 Feb 2007 20:59:39 +0000 (15:59 -0500)

git-gui: Update known branches during rescan.

If the user has created (or deleted) a branch through an external tool,
and uses Rescan, they probably are trying to make git-gui update to show
their newly created branch.

So now we load all known heads and update the branch menu during any
rescan operation, just in-case the set of known branches was modified.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

tar archive frontend for fast-import.Shawn O. Pearce Thu, 8 Feb 2007 20:26:01 +0000 (15:26 -0500)

tar archive frontend for fast-import.

This is an example fast-import frontend, in less than 100 lines
of Perl. It accepts one or more tar archives on the command line,
passes them through gzcat/bzcat/zcat if necessary, parses out the
individual file headers and feeds all contained data to fast-import.
No temporary files are involved.

Each tar is treated as one commit, with the commit timestamp coming
from the oldest file modification date found within the tar.

Each tar is also tagged with an annotated tag, using the basename
of the tar file as the name of the tag.

Currently symbolic links and hard links are not handled by the
importer. The file checksums are also not verified.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Correct spelling of fast-import in docs.Shawn O. Pearce Thu, 8 Feb 2007 18:49:06 +0000 (13:49 -0500)

Correct spelling of fast-import in docs.

Its spelled 'fast-import', not 'gfi'. Linus and Dscho have both
recently pointed this out to me on the mailing list.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Read cvsimport options from repo-configJames Bowes Wed, 7 Feb 2007 22:57:43 +0000 (17:57 -0500)

Read cvsimport options from repo-config

Default values for command line options can be saved in .git/config (or the
global ~/.gitconfig). Config option names match the command line option names,
so cvsimport.d corresponds to git-cvsimport -d. One may also set
cvsimport.module to specify a default cvs module name.

Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

create_symref(): create leading directories as needed.Junio C Hamano Thu, 8 Feb 2007 07:41:43 +0000 (23:41 -0800)

create_symref(): create leading directories as needed.

Otherwise "git remote add -t master -m master" without the
initial fetch would not work.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Correct some language in fast-import documentation.Shawn O. Pearce Thu, 8 Feb 2007 06:53:48 +0000 (01:53 -0500)

Correct some language in fast-import documentation.

Minor documentation improvements, as suggested on the Git mailing
list by Horst H. von Brand and Karl Hasselström.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Correct ^0 asciidoc syntax in fast-import docs.Shawn O. Pearce Thu, 8 Feb 2007 06:35:37 +0000 (01:35 -0500)

Correct ^0 asciidoc syntax in fast-import docs.

I wrote this documentation with asciidoc 7.1.2, but apparently
asciidoc 8 assumes ^ means superscript. The solution was already
documented in rev-parse's manpage and is to use {caret} instead.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

GIT v1.5.0-rc4 v1.5.0-rc4Junio C Hamano Wed, 7 Feb 2007 22:31:21 +0000 (14:31 -0800)

GIT v1.5.0-rc4

Signed-off-by: Junio C Hamano <junkio@cox.net>

Documentation: Add gfi to the main command list.Junio C Hamano Wed, 7 Feb 2007 22:30:47 +0000 (14:30 -0800)

Documentation: Add gfi to the main command list.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Fix "git log -z" behaviourLinus Torvalds Wed, 7 Feb 2007 19:49:56 +0000 (11:49 -0800)

Fix "git log -z" behaviour

For commit messages, we should really put the "line_termination" when we
output the character in between different commits, *not* between the
commit and the diff. The diff goes hand-in-hand with the commit, it
shouldn't be separated from it with the termination character.

So this:
- uses the termination character for true inter-commit spacing
- uses a regular newline between the commit log and the diff

We had it the other way around.

For the normal case where the termination character is '\n', this
obviously doesn't change anything at all, since we just switched two
identical characters around. So it's very safe - it doesn't change any
normal usage, but it definitely fixes "git log -z".

By fixing "git log -z", you can now also do insane things like

git log -p -z |
grep -z "some patch expression" |
tr '\0' '\n' |
less -S

and you will see only those commits that have the "some patch expression"
in their commit message _or_ their patches.

(This is slightly different from 'git log -S"some patch expression"',
since the latter requires the expression to literally *change* in the
patch, while the "git log -p -z | grep .." approach will see it if it's
just an unchanged _part_ of the patch context)

Of course, if you actually do something like the above, you're probably
insane, but hey, it works!

Try the above command line for a demonstration (of course, you need to
change the "some patch expression" to be something relevant). The old
behaviour of "git log -p -z" was useless (and got things completely wrong
for log entries without patches).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>

git-add -i: update removed path correctly.Junio C Hamano Wed, 7 Feb 2007 18:56:38 +0000 (10:56 -0800)

git-add -i: update removed path correctly.

Earlier, when a path that was removed from the working tree was
chosen for update subcommand, you got an error like this:

error: git-resolve.sh: does not exist and --remove not passed
fatal: Unable to process file git-resolve.sh

Signed-off-by: Junio C Hamano <junkio@cox.net>

t4200: skip gc-rerere test on systems with non GNU... Junio C Hamano Wed, 7 Feb 2007 18:42:08 +0000 (10:42 -0800)

t4200: skip gc-rerere test on systems with non GNU date.

Quite nonstandard "date -d @11111111 +%s" does not even fail on
OpenBSD but gives the current date in "seconds since epoch"
format, which is useless for the purpose of this test. We want
to make sure that this returns exactly the same input before
proceeding.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Merge branch 'ml/gitk' (early part)Junio C Hamano Wed, 7 Feb 2007 17:47:49 +0000 (09:47 -0800)

Merge branch 'ml/gitk' (early part)

* 'ml/gitk' (early part):
gitk: Use show-ref instead of ls-remote
Make gitk work reasonably well on Cygwin.
gitk - remove trailing whitespace from a few lines.

fast-import: Fix compile warningsJohannes Schindelin Wed, 7 Feb 2007 11:38:21 +0000 (12:38 +0100)

fast-import: Fix compile warnings

Not on all platforms are size_t and unsigned long equivalent.
Since I do not know how portable %z is, I play safe, and just
cast the respective variables to unsigned long.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

for-each-reflog: fix case for empty log directoryJunio C Hamano Wed, 7 Feb 2007 17:18:57 +0000 (09:18 -0800)

for-each-reflog: fix case for empty log directory

When we remove the last reflog in a directory, opendir() would
succeed and we would iterate over its dirents, expecting retval
to be initialized to zero and setting it to non-zero only upon
seeing an error. If the directory is empty, oops!, we do not
have anybody that touches retval.

The problem is because we initialize retval to errno even on
success from opendir(), which would leave the errno unmolested.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Merge branch 'master' of git://repo.or.cz/git/fastimportJunio C Hamano Wed, 7 Feb 2007 16:39:16 +0000 (08:39 -0800)

Merge branch 'master' of git://repo.or.cz/git/fastimport

* 'master' of git://repo.or.cz/git/fastimport:
Add a Tips and Tricks section to fast-import's manual.
Don't crash fast-import if the marks cannot be exported.
Dump all refs and marks during a checkpoint in fast-import.
Teach fast-import how to sit quietly in the corner.
Teach fast-import how to clear the internal branch content.
Minor timestamp related documentation corrections for fast-import.

git-clone --reference: work well with pack-ref'ed refer... Junio C Hamano Wed, 7 Feb 2007 10:10:56 +0000 (02:10 -0800)

git-clone --reference: work well with pack-ref'ed reference repository

Earlier we only used loose refs to anchor already existing
objects. When cloning from a repository that forked relatively
long time ago from the reference repository, this made the
want/have exchange by fetch-pack to do unnecessary work.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Add a Tips and Tricks section to fast-import's manual.Shawn O. Pearce Wed, 7 Feb 2007 08:49:08 +0000 (03:49 -0500)

Add a Tips and Tricks section to fast-import's manual.

There has been some informative lessons learned in the gfi user
community, and these really should be written down and documented
for future generations of frontend developers.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Avoid ActiveState Perl IO in t800[12]Alex Riesen Mon, 5 Feb 2007 13:04:09 +0000 (14:04 +0100)

Avoid ActiveState Perl IO in t800[12]

Use sed instead, it comes with cygwin and there is almost no chance of
someone installing a sed with default CRLF lineendings by accident.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Documentation: add KMail in SubmittingPatchesMichael Mon, 5 Feb 2007 13:27:32 +0000 (14:27 +0100)

Documentation: add KMail in SubmittingPatches

Signed-off-by: Michael <barra_cuda@katamail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Don't crash fast-import if the marks cannot be exported.Shawn O. Pearce Wed, 7 Feb 2007 07:46:35 +0000 (02:46 -0500)

Don't crash fast-import if the marks cannot be exported.

Apparently fast-import used to die a horrible death if we
were unable to open the marks file for output. This is
slightly less than ideal, especially now that we dump
the marks as part of the `checkpoint` command.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Dump all refs and marks during a checkpoint in fast... Shawn O. Pearce Wed, 7 Feb 2007 07:42:44 +0000 (02:42 -0500)

Dump all refs and marks during a checkpoint in fast-import.

If the frontend asks us to checkpoint (via the explicit checkpoint
command) its probably because they are afraid the current import
will crash/fail/whatever and want to make sure they can pickup from
the last checkpoint. To do that sort of recovery, we will need the
current tip of every branch and tag available at the next startup.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Teach fast-import how to sit quietly in the corner.Shawn O. Pearce Wed, 7 Feb 2007 07:19:31 +0000 (02:19 -0500)

Teach fast-import how to sit quietly in the corner.

Often users will be running fast-import from within a larger frontend
process, and this may be a frequent periodic tool such as a future
edition of `git-svn fetch`. We don't want to bombard users with our
large stats output if they won't be interested in it, so `--quiet`
is now an option to make gfi be more silent.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Teach fast-import how to clear the internal branch... Shawn O. Pearce Wed, 7 Feb 2007 07:03:03 +0000 (02:03 -0500)

Teach fast-import how to clear the internal branch content.

Some frontends may not be able to (easily) keep track of which files
are included in the branch, and which aren't. Performing this
tracking can be tedious and error prone for the frontend to do,
especially if its foreign data source cannot supply the changed
path list on a per-commit basis.

fast-import now allows a frontend to request that a branch's tree
be wiped clean (reset to the empty tree) at the start of a commit,
allowing the frontend to feed in all paths which belong on the branch.

This is ideal for a tar-file importer frontend, for example, as
the frontend just needs to reformat the tar data stream into a gfi
data stream, which may be something a few Perl regexps can take
care of. :)

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Minor timestamp related documentation corrections for... Shawn O. Pearce Wed, 7 Feb 2007 05:51:58 +0000 (00:51 -0500)

Minor timestamp related documentation corrections for fast-import.

As discussed on the mailing list, the documentation used here was
not quite accurate. Improve upon it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Remove git-merge-recurJunio C Hamano Wed, 7 Feb 2007 05:27:09 +0000 (21:27 -0800)

Remove git-merge-recur

This was useful when the current recursive was in development, and
the original Python version was still called git-merge-recursive.

Now the synonym has served us well, it is time to move on.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Add deprecation notices.Junio C Hamano Wed, 7 Feb 2007 05:25:33 +0000 (21:25 -0800)

Add deprecation notices.

Schedule git-diff-stages and git-resolve to be removed by 1.5.1

Signed-off-by: Junio C Hamano <junkio@cox.net>

Merge branch 'master' of git://repo.or.cz/git/fastimportJunio C Hamano Wed, 7 Feb 2007 03:33:22 +0000 (19:33 -0800)

Merge branch 'master' of git://repo.or.cz/git/fastimport

* 'master' of git://repo.or.cz/git/fastimport: (81 commits)
S_IFLNK != 0140000
Don't do non-fastforward updates in fast-import.
Support RFC 2822 date parsing in fast-import.
Minor fast-import documentation corrections.
Remove unnecessary null pointer checks in fast-import.
Correct fast-import timezone documentation.
Correct minor style issue in fast-import.
Correct compiler warnings in fast-import.
Remove --branch-log from fast-import.
Initial draft of fast-import documentation.
Don't support shell-quoted refnames in fast-import.
Reduce memory usage of fast-import.
Include checkpoint command in the BNF.
Accept 'inline' file data in fast-import commit structure.
Reduce value duplication in t9300-fast-import.
Create test case for fast-import.
Support delimited data regions in fast-import.
Remove unnecessary options from fast-import.
Use fixed-size integers when writing out the index in fast-import.
Always use struct pack_header for pack header in fast-import.
...

Remove contrib/colordiffJunio C Hamano Wed, 7 Feb 2007 00:33:16 +0000 (16:33 -0800)

Remove contrib/colordiff

This has completely been superseded by built-in --color option.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Call make always with CFLAGS in git.specHorst H. von Brand Tue, 6 Feb 2007 19:08:55 +0000 (16:08 -0300)

Call make always with CFLAGS in git.spec

If not, the binaries get built once with the correct CFLAGS, and then again
with the ones in the Makefile when installing

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Junio C Hamano <junkio@cox.net>

add replay and log to the usage string of git-bisectUwe Kleine-König Tue, 6 Feb 2007 17:28:32 +0000 (18:28 +0100)

add replay and log to the usage string of git-bisect

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

S_IFLNK != 0140000Junio C Hamano Tue, 6 Feb 2007 20:46:11 +0000 (12:46 -0800)

S_IFLNK != 0140000

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Don't do non-fastforward updates in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 21:08:06 +0000 (16:08 -0500)

Don't do non-fastforward updates in fast-import.

If fast-import is being used to update an existing branch of
a repository, the user may not want to lose commits if another
process updates the same ref at the same time. For example, the
user might be using fast-import to make just one or two commits
against a live branch.

We now perform a fast-forward check during the ref updating process.
If updating a branch would cause commits in that branch to be lost,
we skip over it and display the new SHA1 to standard error.

This new default behavior can be overridden with `--force`, like
git-push and git-fetch.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Support RFC 2822 date parsing in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 19:58:30 +0000 (14:58 -0500)

Support RFC 2822 date parsing in fast-import.

Since some frontends may be working with source material where
the dates are only readily available as RFC 2822 strings, it is
more friendly if fast-import exposes Git's parse_date() function
to handle the conversion. This way the frontend doesn't need
to perform the parsing itself.

The new --date-format option to fast-import can be used by a
frontend to select which format it will supply date strings in.
The default is the standard `raw` Git format, which fast-import
has always supported. Format rfc2822 can be used to activate the
parse_date() function instead.

Because fast-import could also be useful for creating new, current
commits, the format `now` is also supported to generate the current
system timestamp. The implementation of `now` is a trivial call
to datestamp(), but is actually a whole whopping 3 lines so that
fast-import can verify the frontend really meant `now`.

As part of this change I have added validation of the `raw` date
format. Prior to this change fast-import would accept anything
in a `committer` command, even if it was seriously malformed.
Now fast-import requires the '> ' near the end of the string and
verifies the timestamp is formatted properly.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Minor fast-import documentation corrections.Shawn O. Pearce Tue, 6 Feb 2007 17:35:02 +0000 (12:35 -0500)

Minor fast-import documentation corrections.

Corrected a couple of header markup lines which were shorter than the
actual header, and made the `data` commands two formats into a named
list, which matches how we document the two formats of the `M` command
within a commit.

Also tried to simplify the language about our decimal integer format;
Linus pointed out I was probably being too specific at the cost of
reduced readability.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Remove unnecessary null pointer checks in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 17:05:51 +0000 (12:05 -0500)

Remove unnecessary null pointer checks in fast-import.

There is no need to check for a NULL pointer before invoking free(),
the runtime library automatically performs this check anyway and
does nothing if a NULL pointer is supplied.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Correct fast-import timezone documentation.Shawn O. Pearce Tue, 6 Feb 2007 16:59:11 +0000 (11:59 -0500)

Correct fast-import timezone documentation.

Andy Parkins and Linus Torvalds both noticed that the description
of the timezone was incorrect. Its not expressed in minutes.
Its more like "hhmm", where "hh" is the number of hours and "mm"
is the number of minutes shifted from GMT/UTC.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

annotate: fix for cvsserver.Junio C Hamano Tue, 6 Feb 2007 09:52:04 +0000 (01:52 -0800)

annotate: fix for cvsserver.

git-cvsserver does not want the boundary commits shown any differently.

Signed-off-by: Junio C Hamano <junkio@cox.net>

gitweb: fix mismatched parenthesisJunio C Hamano Tue, 6 Feb 2007 09:09:32 +0000 (01:09 -0800)

gitweb: fix mismatched parenthesis

An earlier commit 04179418 broke gitweb. Badly.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-push: allow globbing wildcard refspec.Junio C Hamano Tue, 6 Feb 2007 07:01:14 +0000 (23:01 -0800)

git-push: allow globbing wildcard refspec.

This allows you to set up mothership-satellite configuration
more symmetrically and naturally by allowing the globbing
wildcard refspec for git-push. On your satellite machine:

[remote "mothership"]
url = mothership:project.git
fetch = refs/heads/*:refs/remotes/mothership/*
push = refs/heads/*:refs/remotes/satellite/*

You would say "git fetch mothership" to update your tracking
branches under mothership/ to keep track of the progress on the
mothership side, and when you are done working on the satellite
machine, you would "git push mothership" to update their
tracking branches under satellite/. Corresponding configuration
on the mothership machine can be used to make "git fetch satellite"
update its tracking branch under satellite/. on the mothership.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Correct minor style issue in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 05:43:59 +0000 (00:43 -0500)

Correct minor style issue in fast-import.

Junio noticed that I was using a different style in fast-import
for returned pointers than the rest of Git. Before merging this
code into the main git.git tree I'd like to make it consistent,
as this style variation was not intentional.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Correct compiler warnings in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 05:26:49 +0000 (00:26 -0500)

Correct compiler warnings in fast-import.

Junio noticed these warnings/errors in fast-import when compiling
with `-Werror -ansi -pedantic`. A few changes are to reduce compiler
warnings, while one (in cmd_merge) is a bug fix.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Remove --branch-log from fast-import.Shawn O. Pearce Tue, 6 Feb 2007 05:15:37 +0000 (00:15 -0500)

Remove --branch-log from fast-import.

The --branch-log option and its associated code hasn't been used in
several months, as its not really very useful for debugging fast-import
or a frontend. I don't plan on supporting it in this state long-term,
so I'm killing it now before it gets distributed to a wider audience.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

bash: Complete git-remote subcommands.Shawn O. Pearce Mon, 5 Feb 2007 04:52:08 +0000 (23:52 -0500)

bash: Complete git-remote subcommands.

Completing the 3 core subcommands to git-remote, along with the
names of remotes for 'show' and 'prune' (which take only existing
remotes) is handy.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>

bash: Support git-rebase -m continuation completion.Shawn O. Pearce Mon, 5 Feb 2007 04:52:02 +0000 (23:52 -0500)

bash: Support git-rebase -m continuation completion.

Apparently `git-rebase -m` uses a metadata directory within .git
(.git/.dotest-merge) rather than .dotest used by git-am (and
git-rebase without the -m option). This caused the completion code
to not offer --continue, --skip or --abort when working within a
`git-rebase -m` session.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>

Initial draft of fast-import documentation.Shawn O. Pearce Tue, 6 Feb 2007 02:09:25 +0000 (21:09 -0500)

Initial draft of fast-import documentation.

This is a first pass at the manpage for git-fast-import.

I have tried to cover the input format in extreme detail, creating a
reference which is more detailed than the BNF grammar appearing in
the header of fast-import.c. I have also covered some details about
gfi's performance and memory utilization, as well as the average
learning curve required to create a gfi frontend application (as it
is far lower than it might appear on first glance).

The documentation still lacks real example input streams, which may
turn out to be difficult to format in asciidoc due to the blank lines
which carry meaning within the format.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Don't support shell-quoted refnames in fast-import.Shawn O. Pearce Tue, 6 Feb 2007 01:30:37 +0000 (20:30 -0500)

Don't support shell-quoted refnames in fast-import.

The current implementation of shell-style quoted refnames and
SHA-1 expressions within fast-import contains a bad memory leak.
We leak the unquoted strings used by the `from` and `merge`
commands, maybe others. Its also just muddling up the docs.

Since Git refnames cannot contain LF, and that is our delimiter
for the end of the refname, and we accept any other character
as-is, there is no reason for these strings to support quoting,
except to be nice to frontends. But frontends shouldn't be
expecting to use funny refs in Git, and its just as simple to
never quote them as it is to always pass them through the same
quoting filter as pathnames. So frontends should never quote
refs, or ref expressions.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

gitk: Use show-ref instead of ls-remoteJunio C Hamano Tue, 30 Jan 2007 05:53:28 +0000 (21:53 -0800)

gitk: Use show-ref instead of ls-remote

It used to be ls-remote on self was the only easy way to grab
the ref information. Now we have show-ref which does not
involve fork and IPC, so use it.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Make gitk work reasonably well on Cygwin.Mark Levedahl Thu, 1 Feb 2007 13:46:38 +0000 (08:46 -0500)

Make gitk work reasonably well on Cygwin.

The gitk gui layout was completely broken on Cygwin. If gitk was started
without previous geometry in ~/.gitk, the user could drag the window sashes
to get a useable layout. However, if ~/.gitk existed, this was not possible
at all.

The fix was to rewrite makewindow, changing the toplevel containers and
the particular geometry information saved between sessions. Numerous bugs
in both the Cygwin and the Linux Tk versions make this a delicate
balancing act: the version here works in both but many subtle variants
are competely broken in one or the other environment.

Three user visible changes result:
1 - The viewer is fully functional under Cygwin.
2 - The search bar moves from the bottom to the top of the lower left
pane. This was necessary to get around a layout problem on Cygwin.
3 - The window size and position is saved and restored between sessions.
Again, this is necessary to get around a layout problem on Cygwin.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>

gitk - remove trailing whitespace from a few lines.Mark Levedahl Thu, 1 Feb 2007 13:44:46 +0000 (08:44 -0500)

gitk - remove trailing whitespace from a few lines.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>

Fix longstanding mismerge of ALL_CFLAGS vs BASIC_CFLAGSJunio C Hamano Tue, 6 Feb 2007 00:53:12 +0000 (16:53 -0800)

Fix longstanding mismerge of ALL_CFLAGS vs BASIC_CFLAGS

The earlier commit d7b6c3c0 (Aug 15, 2006) introduced this
mismerge when most of the CFLAGS were renamed to BASIC_CFLAGS.

Not that it matters right now, since we do not compile XS
Perl extensions which wanted non GNU subset of ALL_CFLAGS for
compilation, but we should make things consistent.

Signed-off-by: Junio C Hamano <junkio@cox.net>

pager: Work around window resizing bug in 'less'Linus Torvalds Wed, 24 Jan 2007 19:21:10 +0000 (11:21 -0800)

pager: Work around window resizing bug in 'less'

If you resize the terminal while less is waiting for input, less
will exit entirely without even showing the output. This is very
noticeable if you do something like "git diff" on a big and
cold-cache tree and git takes a few seconds to think, and then
you resize the window while it's preparing. Boom. No output AT
ALL.

The way to reproduce the problem is to do some pager operation
that takes a while in git, and resizing the window while git is
thinking about the output. Try

git diff --stat v2.6.12..

in the kernel tree to do something where it takes a while for git to start
outputting information.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Teach git-remote add to fetch and trackJunio C Hamano Fri, 2 Feb 2007 07:30:03 +0000 (23:30 -0800)

Teach git-remote add to fetch and track

This adds three options to 'git-remote add'.

* -f (or --fetch) option tells it to also run the initial "git
fetch" using the newly created remote shorthand.

* -t (or --track) option tells it not to use the default
wildcard to track all branches.

* -m (or --master) option tells it to make the
remote/$name/HEAD point at a remote tracking branch other
than master.

For example, with this I can say:

$ git remote add -f -t master -t quick-start -m master \
jbf-um git://linux-nfs.org/~bfields/git.git/

to

(1) create remote.jbf-um.url;

(2) track master and quick-start branches (and no other); the
two -t options create these two lines:

fetch = +refs/heads/master:refs/remotes/jbf-um/master
fetch = +refs/heads/quick-start:refs/remotes/jbf-um/quick-start

(3) set up remotes/jbf-um/HEAD to point at jbf-um/master so
that later I can say "git log jbf-um"

Or I could do

$ git remote add -t 'ap/*' andy /home/andy/git.git

to make Andy's topic branches kept track of under refs/remotes/andy/ap/.

Other possible improvements I considered but haven't implemented
(hint, hint) are:

* reject wildcard letters other than a trailing '*' to the -t
parameter;

* make -m optional and when the first -t parameter does not
have the trailing '*' default to that value (so the above
example does not need to say "-m master");

* if -m is not given, and -t parameter ends with '*' (i.e. the
above defaulting did not tell us where to point HEAD at), and
if we did the fetch with -f, check if 'master' was fetched
and make HEAD point at it.

Signed-off-by: Junio C Hamano <junkio@cox.net>

blame: document --contents optionJunio C Hamano Mon, 5 Feb 2007 23:04:01 +0000 (15:04 -0800)

blame: document --contents option

Signed-off-by: Junio C Hamano <junkio@cox.net>

Use pretend_sha1_file() in git-blame and git-merge... Junio C Hamano Mon, 5 Feb 2007 05:49:05 +0000 (21:49 -0800)

Use pretend_sha1_file() in git-blame and git-merge-recursive.

git-merge-recursive wants an null tree as the fake merge base
while producing the merge result tree. The null tree does not
have to be written out in the object store as it won't be part
of the result, and it is a prime example for using the new
pretend_sha1_file() function.

git-blame needs to register an arbitrary data to in-core index
while annotating a working tree file (or standard input), but
git-blame is a read-only application and the user of it could
even lack the privilege to write into the object store; it is
another good example for pretend_sha1_file().

Signed-off-by: Junio C Hamano <junkio@cox.net>

Add pretend_sha1_file() interface.Junio C Hamano Mon, 5 Feb 2007 05:42:38 +0000 (21:42 -0800)

Add pretend_sha1_file() interface.

The new interface allows an application to temporarily hash a
small number of objects and pretend that they are available in
the object store without actually writing them.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame: no rev means start from the working tree... Junio C Hamano Tue, 30 Jan 2007 09:11:08 +0000 (01:11 -0800)

git-blame: no rev means start from the working tree file.

Warning: this changes the semantics.

This makes "git blame" without any positive rev to start digging
from the working tree copy, which is made into a fake commit
whose sole parent is the HEAD.

It also adds --contents <file> option to pretend as if the
working tree copy has the contents of the named file. You can
use '-' to make the command read from the standard input.

If you want the command to start annotating from the HEAD
commit, you need to explicitly give HEAD parameter.

Signed-off-by: Junio C Hamano <junkio@cox.net>

git-blame: an Emacs minor mode to view file with git... David Kågedal Mon, 5 Feb 2007 22:22:28 +0000 (14:22 -0800)

git-blame: an Emacs minor mode to view file with git-blame output.

Here's another version of git-blame.el that automatically tries to
create a sensible list of colors to use for both light and dark
backgrounds. Plus a few minor fixes.

To use:

1) Load into emacs: M-x load-file RET git-blame.el RET
2) Open a git-controlled file
3) Blame: M-x git-blame-mode

Signed-off-by: Junio C Hamano <junkio@cox.net>

Allow forcing of a parent commit, even if the parent... Simon 'corecode' Schubert Thu, 1 Feb 2007 10:43:39 +0000 (11:43 +0100)

Allow forcing of a parent commit, even if the parent is not a direct one.

This can be used to compress multiple changesets into one, for example
like

git cvsexportcommit -P cvshead mybranch

without having to do so in git first.

Signed-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>

bisect: it needs to be done in a working tree.Junio C Hamano Mon, 5 Feb 2007 22:03:27 +0000 (14:03 -0800)

bisect: it needs to be done in a working tree.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Commands requiring a work tree must not run in GIT_DIRJohannes Schindelin Tue, 23 Jan 2007 12:30:20 +0000 (13:30 +0100)

Commands requiring a work tree must not run in GIT_DIR

This patch helps when you accidentally run something like git-clean
in the git directory instead of the work tree.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>