gitweb.git
Export format_commit_message()Ren\e,bi\e(B Scharfe Mon, 3 Sep 2007 18:06:36 +0000 (20:06 +0200)

Export format_commit_message()

Drop the parameter "msg" of format_commit_message() (as it can be
inferred from the parameter "commit"), add a parameter "template"
in order to avoid accessing the static variable user_format
directly and export the result.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

verify-tag: also grok CR/LFs in the tag signatureJohannes Schindelin Mon, 3 Sep 2007 16:51:43 +0000 (17:51 +0100)

verify-tag: also grok CR/LFs in the tag signature

On some people's favorite platform, gpg outputs signatures
with CR/LF line endings. So verify-tag has to play nice with
them.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-p4: Added support for automatically importing newly... Simon Hausmann Sun, 26 Aug 2007 15:36:55 +0000 (17:36 +0200)

git-p4: Added support for automatically importing newly appearing perforce branches.

If a change in a p4 "branch" appears that hasn't seen any previous commit and
that has a known branch mapping we now try to import it properly. First we
find the p4 change of the source branch that the new p4 branch is based on. Then
we using git rev-list --bisect to locate the corresponding git commit to that change.
Finally we import all changes in the new p4 branch up to the current change and resume
with the regular import.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Cleanup; moved the (duplicated) code for turnin... Simon Hausmann Sun, 26 Aug 2007 14:44:55 +0000 (16:44 +0200)

git-p4: Cleanup; moved the (duplicated) code for turning a branch into a git ref (for example foo -> refs/remotes/p4/<project>/foo) into a separate method.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Cleanup; moved the code for the initial #head... Simon Hausmann Sun, 26 Aug 2007 14:07:18 +0000 (16:07 +0200)

git-p4: Cleanup; moved the code for the initial #head or revision import into a separate function, out of P4Sync.run.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Cleanup; Turn self.revision into a function... Simon Hausmann Sun, 26 Aug 2007 14:04:34 +0000 (16:04 +0200)

git-p4: Cleanup; Turn self.revision into a function local variable (it's not used anywhere outside the function).

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Cleanup; moved the code to import a list of... Simon Hausmann Sun, 26 Aug 2007 14:00:52 +0000 (16:00 +0200)

git-p4: Cleanup; moved the code to import a list of p4 changes using fast-import into a separate member function of P4Sync.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Cleanup; moved the code for getting a sorted... Simon Hausmann Sun, 26 Aug 2007 13:56:36 +0000 (15:56 +0200)

git-p4: Cleanup; moved the code for getting a sorted list of p4 changes for a list of given depot paths into a standalone method.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: After submission to p4 always synchronize from... Simon Hausmann Wed, 22 Aug 2007 07:07:15 +0000 (09:07 +0200)

git-p4: After submission to p4 always synchronize from p4 again (into refs/remotes). Whether to rebase HEAD or not is still left as question to the end-user.

Signed-off-by: Simon Hausmann <simon@lst.de>

git-p4: Always call 'p4 sync ...' before submitting... Simon Hausmann Tue, 21 Aug 2007 09:53:02 +0000 (11:53 +0200)

git-p4: Always call 'p4 sync ...' before submitting to Perforce.

Acked-by: Marius Storm-Olsen <marius@trolltech.com>
Acked-by: Thiago Macieira <thiago@kde.org>

Teach "git remote" a mirror modeJohannes Schindelin Sun, 2 Sep 2007 20:10:14 +0000 (21:10 +0100)

Teach "git remote" a mirror mode

When using the "--mirror" option to "git remote add", the refs will not
be stored in the refs/remotes/ namespace, but in the same location as
on the remote side.

This option probably only makes sense in a bare repository.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

send-email: Add support for SSL and SMTP-AUTHDouglas Stockwell Sun, 2 Sep 2007 18:06:25 +0000 (03:06 +0900)

send-email: Add support for SSL and SMTP-AUTH

Allows username and password to be given using --smtp-user
and --smtp-pass. SSL use is flagged by --smtp-ssl. These are
backed by corresponding defaults in the git configuration file.

This implements Junio's 'mail identity' suggestion in a slightly
more generalised manner. --identity=$identity, backed by
sendemail.identity indicates that the configuration subsection
[sendemail "$identity"] should take priority over the [sendemail]
section for all configuration values.

Signed-off-by: Douglas Stockwell <doug@11011.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Start 1.5.4 cycleJunio C Hamano Mon, 3 Sep 2007 09:40:06 +0000 (02:40 -0700)

Start 1.5.4 cycle

Signed-off-by: Junio C Hamano <gitster@pobox.com>

GIT 1.5.3.1: obsolete git-p4 in RPM spec file. v1.5.3.1Junio C Hamano Sun, 2 Sep 2007 22:16:44 +0000 (15:16 -0700)

GIT 1.5.3.1: obsolete git-p4 in RPM spec file.

HPA noticed that yum does not like the newer git RPM set; it turns out
that we do not ship git-p4 anymore but existing installations do not
realize the package is gone if we do not tell anything about it.

David Kastrup suggests using Obsoletes in the spec file of the new
RPM to replace the old package, so here is a try.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-gui: remove dots in some UI stringsMichele Ballabio Sun, 2 Sep 2007 12:43:00 +0000 (14:43 +0200)

git-gui: remove dots in some UI strings

Dots in a UI string usually mean that a dialog box will
appear waiting for further input. So this patch removes
unneeded dots for actions that do not require user's
input.

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

git-gui: Quiet the msgfmt part of the make processShawn O. Pearce Mon, 3 Sep 2007 04:42:09 +0000 (00:42 -0400)

git-gui: Quiet the msgfmt part of the make process

I really prefer having a very short and sweet makefile output that
does not flood the user's screen with a ton of commands that they
don't care much about. Traditionally git-gui has hidden away the
actual commands from output by the $(QUIET*) series of macros but
allow them to be seen with either `make QUIET=` or `make V=1`.

This change makes our i18n message generation process to be a lot
shorter and easier to digest at a glance:

GITGUI_VERSION = 0.8.2.19.gb868-dirty
* new locations or Tcl/Tk interpreter
GEN git-gui
BUILTIN git-citool
INDEX lib/
MSGFMT po/de.msg 268 translated.
MSGFMT po/hu.msg 268 translated.
MSGFMT po/it.msg 268 translated.
MSGFMT po/ja.msg 268 translated.
MSGFMT po/ru.msg 249 translated, 12 fuzzy, 4 untranslated.
MSGFMT po/zh_cn.msg 60 translated, 37 fuzzy, 168 untranslated.

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

git-gui: Correct stock message for 'Invalid font specif... Shawn O. Pearce Mon, 3 Sep 2007 04:22:19 +0000 (00:22 -0400)

git-gui: Correct stock message for 'Invalid font specified in %s'

This particular message is talking about a specific option in the
configuration file named "gui.$name". This option is not localized
so we cannot localize the "gui." that denotes the section the option
$name is found within. Currently there are no plans to localize the
configuration options for git-gui, but if that were to change in the
future then it would be necessary to localize not only the "gui."
section prefix but also the $name (fontui and fontdiff).

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

git-gui: Update po/README as symlink process is not... Shawn O. Pearce Mon, 3 Sep 2007 04:17:04 +0000 (00:17 -0400)

git-gui: Update po/README as symlink process is not necessary

We don't actually need to create the lib/msgs symlink back to our
po directory in the source tree. git-gui.sh is smart enough to
figure out this is where the msg files are and will load them from
the po directory if invoked as git-gui.sh.

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

Typofix: 1.5.3 release notesJunio C Hamano Sun, 2 Sep 2007 22:03:26 +0000 (15:03 -0700)

Typofix: 1.5.3 release notes

git-gui: Added initial version of po/glossary/zh_cn.poXudong Guan Wed, 25 Jul 2007 12:47:17 +0000 (13:47 +0100)

git-gui: Added initial version of po/glossary/zh_cn.po

with contributions from LI Yang, WANG Cong, ZHANG Le, and rae l
from the zh-kernel.org mailing list.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

German glossary for translationChristian Stimming Tue, 24 Jul 2007 12:59:15 +0000 (14:59 +0200)

German glossary for translation

Signed-off-by: Christian Stimming <christian.stimming@ibeo-as.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Hungarian translation of git-guiMiklos Vajna Fri, 27 Jul 2007 12:37:33 +0000 (14:37 +0200)

Hungarian translation of git-gui

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

git-gui: initial version of russian translationIrina Riesen Sun, 22 Jul 2007 11:57:12 +0000 (13:57 +0200)

git-gui: initial version of russian translation

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Irina Riesen <irina.riesen@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Italian translation of git-guiPaolo Ciarrocchi Sun, 22 Jul 2007 10:51:13 +0000 (12:51 +0200)

Italian translation of git-gui

[jes: includes patches from Michele Ballabio]

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Japanese translation of git-guiしらいしななこ Wed, 25 Jul 2007 08:59:58 +0000 (17:59 +0900)

Japanese translation of git-gui

[jes: Also includes work from Junio Hamano]

Signed-off-by: しらいしななこ <nanako3@bluebottle.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Initial Chinese translation for git-guiXudong Guan Sun, 22 Jul 2007 00:08:56 +0000 (01:08 +0100)

Initial Chinese translation for git-gui

Simplified Chinese, in UTF-8 encoding.

Signed-off-by: Xudong Guan <xudong.guan@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

German translation for git-guiChristian Stimming Sat, 21 Jul 2007 12:18:14 +0000 (14:18 +0200)

German translation for git-gui

Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Add glossary translation template into git.Christian Stimming Fri, 27 Jul 2007 17:24:45 +0000 (19:24 +0200)

Add glossary translation template into git.

This way, it should be easier for new translators to actually find out
about the glossary.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Add glossary that can be converted into a po file for... Christian Stimming Mon, 23 Jul 2007 20:11:12 +0000 (22:11 +0200)

Add glossary that can be converted into a po file for each language.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Ignore po/*.msgJohannes Schindelin Sun, 22 Jul 2007 11:31:45 +0000 (12:31 +0100)

Ignore po/*.msg

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Add po/git-gui.potJohannes Schindelin Sun, 22 Jul 2007 01:12:18 +0000 (02:12 +0100)

Add po/git-gui.pot

Usually, generated files are not part of the tracked content in
a project. However, translators may lack the tools to generate
git-gui.pot. Besides, it is possible that a contributor does
not even check out the repository, but gets this file via gitweb.

Pointed out by Junio.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

git-gui po/README: Guide to translatorsJunio C Hamano Fri, 27 Jul 2007 23:05:16 +0000 (16:05 -0700)

git-gui po/README: Guide to translators

This short note is to help a translation contributor to help us
localizing git-gui message files by covering the basics.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Makefile rules for translation catalog generation and... Christian Stimming Sat, 21 Jul 2007 12:17:07 +0000 (14:17 +0200)

Makefile rules for translation catalog generation and installation.

[jes: with fixes by the i18n team.]

Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Mark strings for translation.Christian Stimming Sat, 21 Jul 2007 12:21:34 +0000 (14:21 +0200)

Mark strings for translation.

The procedure [mc ...] will translate the strings through msgcat.
Strings must be enclosed in quotes, not in braces, because otherwise
xgettext cannot extract them properly, although on the Tcl side both
delimiters would work fine.

[jes: I merged the later patches to that end.]

Signed-off-by: Christian Stimming <stimming@tuhh.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

GIT 1.5.3 v1.5.3Junio C Hamano Sun, 2 Sep 2007 07:00:00 +0000 (00:00 -0700)

GIT 1.5.3

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Keep last used delta base in the delta windowJunio C Hamano Sun, 2 Sep 2007 06:53:47 +0000 (23:53 -0700)

Keep last used delta base in the delta window

This is based on Martin Koegler's idea to keep the object that
was successfully used as the base of the delta when it is about
to fall off the edge of the window. Instead of doing so only
for the objects at the edge of the window, this makes the window
a lru eviction mechanism. If an entry is used as a base, it is
moved to the last of the queue to be evicted.

This is a quick-and-dirty implementation, as it keeps the original
implementation of the data structure used for the window. This
originally was done as an array, not as an array of pointers,
because it was meant to be used as a cyclic FIFO buffer and a
plain array avoids an extra pointer indirection, while its FIFOness
eant that we are not "moving" the entries like this patch does.

The runtime from three versions were comparable. It seems to
make the resulting chain even shorter, which can only be good.

(stock "master") 15782196 bytes
chain length = 1: 2972 objects
chain length = 2: 2651 objects
chain length = 3: 2369 objects
chain length = 4: 2121 objects
chain length = 5: 1877 objects
...
chain length = 46: 490 objects
chain length = 47: 515 objects
chain length = 48: 527 objects
chain length = 49: 570 objects
chain length = 50: 408 objects

(with your patch) 15745736 bytes (0.23% smaller)
chain length = 1: 3137 objects
chain length = 2: 2688 objects
chain length = 3: 2322 objects
chain length = 4: 2146 objects
chain length = 5: 1824 objects
...
chain length = 46: 503 objects
chain length = 47: 509 objects
chain length = 48: 536 objects
chain length = 49: 588 objects
chain length = 50: 357 objects

(with this patch) 15612086 bytes (1.08% smaller)
chain length = 1: 4831 objects
chain length = 2: 3811 objects
chain length = 3: 2964 objects
chain length = 4: 2352 objects
chain length = 5: 1944 objects
...
chain length = 46: 327 objects
chain length = 47: 353 objects
chain length = 48: 304 objects
chain length = 49: 298 objects
chain length = 50: 135 objects

[jc: this is with code simplification follow-up from Nico]

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-gui: Initialize Tcl's msgcat library for internatio... Shawn O. Pearce Sun, 2 Sep 2007 02:22:42 +0000 (22:22 -0400)

git-gui: Initialize Tcl's msgcat library for internationalization

Tcl's msgcat library and corresponding mc procedure can locate a
translated string for any user message, provided that it is first
given a directory where the *.msg files are located containing the
translations.

During installation we will place the translations in lib/msgs/,
so we need to inform msgcat of this location once we determine it
during startup. Our source code tree however will store all of
the translations within the po/ directory, so we need to special
case this variant.

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

git-gui: Locate the library directory early during... Shawn O. Pearce Sun, 2 Sep 2007 01:58:29 +0000 (21:58 -0400)

git-gui: Locate the library directory early during startup

To support a localized version of git-gui we need to locate the
library directory early so we can initialize Tcl's msgcat package
to load translated messages from. This needs to occur before we
declare our git-version proc so that errors related to locating
git or assessing its version can be reported to the end-user in
their preferred language. However we have to keep the library
loading until after git-version has been declared, otherwise we
will fail to start git-gui if we are using a fake tclIndex that
was generated by our Makefile.

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

Merge branch 'jp/send-email-cc'Junio C Hamano Sat, 1 Sep 2007 20:15:27 +0000 (13:15 -0700)

Merge branch 'jp/send-email-cc'

* jp/send-email-cc:
git-send-email --cc-cmd

Mention -m as an abbreviation for --mergeRobin Rosenberg Sat, 1 Sep 2007 12:11:10 +0000 (14:11 +0200)

Mention -m as an abbreviation for --merge

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Update my contact address as the maintainer.Junio C Hamano Sat, 1 Sep 2007 11:09:51 +0000 (04:09 -0700)

Update my contact address as the maintainer.

Documentation: minor AsciiDoc mark-up fixes.Junio C Hamano Sat, 1 Sep 2007 11:01:54 +0000 (04:01 -0700)

Documentation: minor AsciiDoc mark-up fixes.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

URL: allow port specification in ssh:// URLsLuben Tuikov Sat, 1 Sep 2007 09:36:31 +0000 (02:36 -0700)

URL: allow port specification in ssh:// URLs

Allow port specification in ssh:// URLs in the
usual notation:

ssh://[user@]host.domain[:<port>]/<path>

This allows git to be used over ssh-tunneling
networks.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Avoid one-or-more (\+) non BRE in sed scripts.Junio C Hamano Sat, 1 Sep 2007 09:17:28 +0000 (02:17 -0700)

Avoid one-or-more (\+) non BRE in sed scripts.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

rebase -m: Fix incorrect short-logs of already applied... Johannes Sixt Sat, 1 Sep 2007 07:25:27 +0000 (09:25 +0200)

rebase -m: Fix incorrect short-logs of already applied commits.

When a topic branch is rebased, some of whose commits are already
cherry-picked upstream:

o--X--A--B--Y <- master
\
A--B--Z <- topic

then 'git rebase -m master' would report:

Already applied: 0001 Y
Already applied: 0002 Y

With this fix it reports the expected:

Already applied: 0001 A
Already applied: 0002 B

As an added bonus, this change also avoids 'echo' of a commit message,
which might contain escapements.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-diff: resurrect the traditional empty "diff --git... Junio C Hamano Fri, 31 Aug 2007 20:13:42 +0000 (13:13 -0700)

git-diff: resurrect the traditional empty "diff --git" behaviour

The warning message to suggest "Consider running git-status" from
"git-diff" that we experimented with during the 1.5.3 cycle turns
out to be a bad idea. It robbed cache-dirty information from people
who valued it, while still asking users to run "update-index --refresh".
It was hoped that the new behaviour would at least have some educational
value, but not showing the cache-dirty paths like before meant that the
user would not even know easily which paths were cache-dirty, and it
made the need to refresh the index look like even more unnecessary chore.

This commit reinstates the traditional behaviour, but with a twist.

By default, the empty "diff --git" output is totally squelched out
from "git diff" output. At the end of the command, it automatically
runs "update-index --refresh" as needed, without even bothering the
user. In other words, people who do not care about the cache-dirtyness
do not even have to see the warning.

The traditional behaviour to see the stat-dirty output and to bypassing
the overhead of content comparison can be specified by setting the
configuration variable diff.autorefreshindex to false.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-tag: Fix -l option to use better shell style globs.Carlos Rica Sat, 1 Sep 2007 05:10:09 +0000 (07:10 +0200)

git-tag: Fix -l option to use better shell style globs.

This patch removes certain behaviour of "git tag -l foo", currently
listing every tag name having "foo" as a substring. The same
thing now could be achieved doing "git tag -l '*foo*'".

This feature was added recently when git-tag.sh got the -n option
for showing tag annotations, because that commit also replaced the
old "grep pattern" behaviour with a more preferable "shell pattern"
behaviour (although slightly modified as you can see).
Thus, the following builtin-tag.c implemented it in order to
ensure that tests were passing unchanged with both programs.

Since common "shell patterns" match names with a given substring
_only_ when * is inserted before and after (as in "*substring*"), and
the "plain" behaviour cannot be achieved easily with the current
implementation, this is mostly the right thing to do, in order to
make it more flexible and consistent.

Tests for "git tag" were also changed to reflect this.

Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn: fix dcommit clobbering upstream when committin... Eric Wong Sat, 1 Sep 2007 01:16:12 +0000 (18:16 -0700)

git-svn: fix dcommit clobbering upstream when committing multiple changes

Although dcommit could detect if the first commit in the series
would conflict with the HEAD revision in SVN, it could not
detect conflicts in further commits it made.

Now we rebase each uncommitted change after each revision is
committed to SVN to ensure that we are up-to-date. git-rebase
will bail out on conflict errors if our next change cannot be
applied and committed to SVN cleanly, preventing accidental
clobbering of changes on the SVN-side.

--no-rebase users will have trouble with this, and are thus
warned if they are committing more than one commit. Fixing this
for (hopefully uncommon) --no-rebase users would be more complex
and will probably happen at a later date.

Thanks to David Watson for finding this and the original test.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn: Protect against "diff.color = true".Junio C Hamano Fri, 31 Aug 2007 21:29:49 +0000 (14:29 -0700)

git-svn: Protect against "diff.color = true".

If the configuration of the user has "diff.color = true", the
output from "log" we invoke internally added color codes, which
broke the parser.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tested-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>

filter-branch: introduce convenience function "skip_commit"Johannes Schindelin Fri, 31 Aug 2007 19:06:27 +0000 (20:06 +0100)

filter-branch: introduce convenience function "skip_commit"

With this function, a commit filter can leave out unwanted commits
(such as temporary commits). It does _not_ undo the changeset
corresponding to that commit, but it _skips_ the revision. IOW
no tree object is changed by this.

If you like to commit early and often, but want to filter out all
intermediate commits, marked by "@@@" in the commit message, you can
now do this with

git filter-branch --commit-filter '
if git cat-file commit $GIT_COMMIT | grep '@@@' > /dev/null;
then
skip_commit "$@";
else
git commit-tree "$@";
fi' newbranch

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

filter-branch: provide the convenience functions also... Johannes Schindelin Fri, 31 Aug 2007 19:05:36 +0000 (20:05 +0100)

filter-branch: provide the convenience functions also for commit filters

Move the convenience functions to the top of git-filter-branch.sh, and
return from the script when the environment variable SOURCE_FUNCTIONS is
set.

By sourcing git-filter-branch with that variable set automatically, all
commit filters may access the convenience functions like "map".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

rebase -i: mention the option to split commits in the... Johannes Schindelin Fri, 31 Aug 2007 17:10:21 +0000 (18:10 +0100)

rebase -i: mention the option to split commits in the man page

The interactive mode of rebase can be used to split commits. Tell the
interested parties about it, with a dedicated section in the man page.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

filter-branch: fix remnants of old syntax in documentationJohannes Schindelin Fri, 31 Aug 2007 16:42:33 +0000 (17:42 +0100)

filter-branch: fix remnants of old syntax in documentation

Some time ago, filter-branch's syntax changed so that more than one
ref can be rewritten at the same time. This involved the removal of
the ref name for the result; instead, the refs are rewritten in-place.

This updates the last leftovers in the documentation to reflect the
new behavior.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Teach bash about completing arguments for git-tagShawn O. Pearce Sat, 1 Sep 2007 03:47:01 +0000 (23:47 -0400)

Teach bash about completing arguments for git-tag

Lately I have been doing a lot of calls to `git tag -d` and also to
`git tag -v`. In both such cases being able to complete the names
of existing tags saves the fingers some typing effort. We now look
for the -d or -v option to git-tag in the bash completion support
and offer up existing tag names as possible choices for these.

When creating a new tag we now also offer bash completion support
for the second argument to git-tag (the object to be tagged) as this
can often be a specific existing branch name and is not necessarily
the current HEAD.

If the -f option is being used to recreate an existing tag we now
also offer completion support on the existing tag names for the
first argument of git-tag, helping to the user to reselect the
prior tag name that they are trying to replace.

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

Hopefully the final update to draft release notes for... Junio C Hamano Fri, 31 Aug 2007 07:35:36 +0000 (00:35 -0700)

Hopefully the final update to draft release notes for 1.5.3.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Make "git-log --" without paths behave the same as... Junio C Hamano Fri, 31 Aug 2007 05:58:26 +0000 (22:58 -0700)

Make "git-log --" without paths behave the same as "git-log" without --

"git log" family of commands, even when run from a subdirectory,
do not limit the revision range with the current directory as
the path limiter, but with double-dash without any paths after
it, i.e. "git log --" do so. It was a mistake to have a
difference between "git log --" and "git log" introduced in
commit ae563542bf10fa8c33abd2a354e4b28aca4264d7 (First cut at
libifying revlist generation).

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-init: autodetect core.symlinksJunio C Hamano Fri, 31 Aug 2007 07:25:04 +0000 (00:25 -0700)

git-init: autodetect core.symlinks

We already autodetect if filemode is reliable on the filesystem
to deal with VFAT and friends. Do the same for symbolic link
support.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Make git-archimport log entries more consistentMiles Bader Thu, 30 Aug 2007 01:56:56 +0000 (21:56 -0400)

Make git-archimport log entries more consistent

When appending the "git-archimport-id:" line to the end of log entries,
git-archimport would use two blank lines as a separator when there was no
body in the arch log (only a Summary: line), and zero blank lines when there
was a body (making it hard to see the break between the actual log message
and the git-archimport-id: line).

This patch makes git-archimport generate one blank line as a separator in all
cases.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

fix same sized delta logicNicolas Pitre Thu, 30 Aug 2007 01:17:17 +0000 (21:17 -0400)

fix same sized delta logic

The code favoring shallower deltas when size is equal was triggered
only when previous delta was also cached. There should be no relation
between cached deltas and same sized deltas.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

filter-branch: make sure orig_namespace ends with a... Junio C Hamano Fri, 31 Aug 2007 02:17:42 +0000 (19:17 -0700)

filter-branch: make sure orig_namespace ends with a single slash.

Later in a loop any existing ref whose path begins with it is
removed. It would be a disaster if you allowed it to say refs/head
for example.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-filter-branch: document --original optionGiuseppe Bilotta Thu, 30 Aug 2007 17:10:42 +0000 (19:10 +0200)

git-filter-branch: document --original option

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-filter-branch: more detailed USAGEGiuseppe Bilotta Thu, 30 Aug 2007 17:10:41 +0000 (19:10 +0200)

git-filter-branch: more detailed USAGE

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Makefile: do not allow gnu make to remove test-*.o... Junio C Hamano Fri, 31 Aug 2007 02:14:31 +0000 (19:14 -0700)

Makefile: do not allow gnu make to remove test-*.o files

It appears parallel build (-j) gets confused.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Temporary fix for stack smashing in mailinfoAlex Riesen Thu, 30 Aug 2007 21:48:24 +0000 (23:48 +0200)

Temporary fix for stack smashing in mailinfo

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fixing comment in merge strategiesTom Clarke Thu, 30 Aug 2007 21:12:44 +0000 (23:12 +0200)

Fixing comment in merge strategies

Comments in both these strategies refer to the wrong number
of remotes

Signed-off-by: Tom Clarke <tom@u2i.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitk: Add a cache for the topology infoPaul Mackerras Thu, 30 Aug 2007 11:54:17 +0000 (21:54 +1000)

gitk: Add a cache for the topology info

This adds code to write out the topology information used to determine
precedes/follows and branch information into a cache file (~3.5MB for
the kernel tree). At startup we read the cache file and then do a
git rev-list to update it, which is fast because we exclude all commits
in the cache that have no children and commits reachable from them
(which amounts to everything in the cache). If one of those commits
without children no longer exists, then git rev-list will give an error,
whereupon we throw away the cache and read in the whole tree again.

This gives a significant speedup in the startup time for gitk.

Signed-off-by: Paul Mackerras <paulus@samba.org>

ls-files --error-unmatch: do not barf if the same patte... Junio C Hamano Thu, 30 Aug 2007 06:12:38 +0000 (23:12 -0700)

ls-files --error-unmatch: do not barf if the same pattern is given twice.

This is most visible when you do "git commit Makefile Makefile"; it
may be a stupid request, but that is not a reason to fail the command.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'master' of git://git./gitk/gitkJunio C Hamano Wed, 29 Aug 2007 20:27:10 +0000 (13:27 -0700)

Merge branch 'master' of git://git./gitk/gitk

* 'master' of git://git.kernel.org/pub/scm/gitk/gitk:
gitk: Fix bug causing undefined variable error when cherry-picking

completion: also complete git-log's --left-right and... Johannes Schindelin Wed, 29 Aug 2007 14:15:34 +0000 (15:15 +0100)

completion: also complete git-log's --left-right and --cherry-pick option

Both --left-right and --cherry-pick are particularly long to type, so
help the user there.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitk: Fix bug causing undefined variable error when... Paul Mackerras Wed, 29 Aug 2007 12:41:34 +0000 (22:41 +1000)

gitk: Fix bug causing undefined variable error when cherry-picking

When "Show nearby tags" is turned off and the user did a cherry-pick,
we were trying to access variables relating to the descendent/ancestor
tag & head computations in addnewchild though they hadn't been set.
This makes sure we don't do that. Reported by Johannes Sixt.

Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: Fix bug causing undefined variable error when... Paul Mackerras Wed, 29 Aug 2007 12:41:34 +0000 (22:41 +1000)

gitk: Fix bug causing undefined variable error when cherry-picking

When "Show nearby tags" is turned off and the user did a cherry-pick,
we were trying to access variables relating to the descendent/ancestor
tag & head computations in addnewchild though they hadn't been set.
This makes sure we don't do that. Reported by Johannes Sixt.

Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: Fix bug causing incorrect ref list contents when... Paul Mackerras Wed, 29 Aug 2007 12:03:07 +0000 (22:03 +1000)

gitk: Fix bug causing incorrect ref list contents when switching view

If the view we're switching to hadn't been read in, we hit an early
return in showview which meant we didn't update the ref list window.

Signed-off-by: Paul Mackerras <paulus@samba.org>

gitk: Do only the parts of the layout that are neededPaul Mackerras Wed, 29 Aug 2007 11:45:21 +0000 (21:45 +1000)

gitk: Do only the parts of the layout that are needed

This changes layoutrows and optimize_rows to make it possible to lay
out only a little bit more of the graph than is visible, rather than
having to lay out the whole graph from top to bottom. To lay out
some of the graph without starting at the top, we use the new make_idlist
procedure for the first row, then lay it out proceeding downwards
as before. Empty list elements in rowidlist are used to denote rows
that haven't been laid out yet.

Optimizing happens much as before except that we don't try to optimize
unless we have three consecutive rows laid out (or the top 2 rows).
We have a new list, rowisopt, to record which rows have been optimized.

If we change a row that has already been drawn, we set a flag which
causes drawcommits to throw away everything drawn on the canvas and redraw
the visible rows.

Signed-off-by: Paul Mackerras <paulus@samba.org>

git-daemon(1): assorted improvements.Junio C Hamano Wed, 29 Aug 2007 10:32:12 +0000 (03:32 -0700)

git-daemon(1): assorted improvements.

Jari Aalto noticed a handful places in git-daemon documentation
that need to be improved.

* --inetd makes --pid-file to be ignored, in addition to --user
and --group

* receive-pack service was not described at all. We should, if
only to warn about the security implications of it.

* There was no example of per repository configuration.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

GIT 1.5.3-rc7 v1.5.3-rc7Junio C Hamano Wed, 29 Aug 2007 07:11:27 +0000 (00:11 -0700)

GIT 1.5.3-rc7

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-svn.txt: fix an obvious misspelling.David Kastrup Fri, 17 Aug 2007 15:48:53 +0000 (17:48 +0200)

git-svn.txt: fix an obvious misspelling.

Signed-off-by: David Kastrup <dak@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git.el: Added colors for dark backgroundDavid Kågedal Mon, 27 Aug 2007 09:50:12 +0000 (11:50 +0200)

git.el: Added colors for dark background

Signed-off-by: Junio C Hamano <gitster@pobox.com>

format-patch documentation: reword to hint "--root... Junio C Hamano Wed, 29 Aug 2007 04:58:53 +0000 (21:58 -0700)

format-patch documentation: reword to hint "--root <one-commit>" more clearly

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'jc/logsemantics'Junio C Hamano Wed, 29 Aug 2007 04:49:01 +0000 (21:49 -0700)

Merge branch 'jc/logsemantics'

* jc/logsemantics:
"format-patch --root rev" is the way to show everything.
Porcelain level "log" family should recurse when diffing.

Documentation/git-diff: A..B and A...B cannot take... Junio C Hamano Wed, 29 Aug 2007 04:47:08 +0000 (21:47 -0700)

Documentation/git-diff: A..B and A...B cannot take tree-ishes

As pointed out by Linus, these notations require the endpoints
given by the end user to be commits. Clarify.

Also, three-dots in AsciiDoc are turned into ellipses unless
quoted with bq. Be careful.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-add: Make the filename globbing note a bit clearerPetr Baudis Tue, 28 Aug 2007 22:41:28 +0000 (00:41 +0200)

git-add: Make the filename globbing note a bit clearer

I think the trick with Git-side filename globbing is important and perhaps
not that well known. Clarify a bit in git-add documentation what it means.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-add: Make the "tried to add ignored file" error... Petr Baudis Tue, 28 Aug 2007 22:41:23 +0000 (00:41 +0200)

git-add: Make the "tried to add ignored file" error message less confusing

Currently the error message seems to imply (at least to me) that only
the listed files were withheld and the rest of the files was added to the
index, even though that's obviously not the case.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitweb: Fix escaping HTML of project owner in 'projects... Jakub Narebski Tue, 28 Aug 2007 14:05:43 +0000 (16:05 +0200)

gitweb: Fix escaping HTML of project owner in 'projects_list' and
'summary' views

This for example allows to put email address in the project owner
field in the projects index file (when $projects_list points to
a file, and not to a directory), in the form of:

path/to/repo.git Random+J+Developer+<random@developer.example.org>

Noticed-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

"format-patch --root rev" is the way to show everything.Junio C Hamano Tue, 28 Aug 2007 07:38:48 +0000 (00:38 -0700)

"format-patch --root rev" is the way to show everything.

We used to trigger the special case "things not in origin"
semantics only when one and only one positive ref is given, and
no number (e.g. "git format-patch -4 origin") was specified, and
used the general revision range semantics for everything else.

This narrows the special case a bit more, by making:

git format-patch --root this_version

to show everything that leads to the named commit.

More importantly, document the two different semantics better.
The generic revision range semantics came later and bolted on
without being clearly documented.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Porcelain level "log" family should recurse when diffing.Junio C Hamano Mon, 27 Aug 2007 08:33:49 +0000 (01:33 -0700)

Porcelain level "log" family should recurse when diffing.

Most notably, "git log --name-status" stopped at top level
directory changes without "-r" option.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-merge: do up-to-date check also for all strategiesJunio C Hamano Thu, 16 Aug 2007 06:19:55 +0000 (23:19 -0700)

git-merge: do up-to-date check also for all strategies

This clarifies the logic to omit fast-forward check and omit
trivial merge before running the specified strategy.

The "index_merge" variable started out as a flag to say "do not
do anything clever", but when recursive was changed to skip the
trivial merge, the semantics were changed and the variable alone
does not make sense anymore.

This splits the variable into two, allow_fast_forward (which is
almost always true, and avoids making a merge commit when the
other commit is a descendant of our branch, but is set to false
for ours and subtree) and allow_trivial_merge (which is false
for ours, recursive and subtree).

Unlike the earlier implementation, the "ours" strategy allows an
up-to-date condition. When we are up-to-date, the result will
be our commit, and by definition, we will have our tree as the
result.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git --bare cmd: do not unconditionally nuke GIT_DIRJunio C Hamano Tue, 28 Aug 2007 05:41:23 +0000 (22:41 -0700)

git --bare cmd: do not unconditionally nuke GIT_DIR

"GIT_DIR=some.where git --bare cmd" and worse yet
"git --git-dir=some.where --bare cmd" were very confusing. They
both ignored git-dir specified, and instead made $cwd as GIT_DIR.

This changes --bare not to override existing GIT_DIR.

This has been like this for a long time. Let's hope nobody sane
relied on this insane behaviour.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Fix initialization of a bare repositoryJunio C Hamano Mon, 27 Aug 2007 07:58:06 +0000 (00:58 -0700)

Fix initialization of a bare repository

Here is my attempt to fix this with a minimally intrusive patch.

* As "git --bare init" cannot tell if it was called with --bare or
just "GIT_DIR=. git init", I added an explicit assignment of
is_bare_repository_cfg on the codepath for "git --bare".

* GIT_WORK_TREE alone without GIT_DIR does not make any sense,
nor GIT_WORK_TREE with an explicit "git --bare". Catch that
mistake. It might make sense to move this check to "git.c"
side as well, but I tried to shoot for the minimum change for
now.

* Some scripts, especially from the olden days, rely on
traditional GIT_DIR behaviour in "git init". Namely, these
are some notable patterns:

(create a bare repository)
- mkdir some.git && cd some.git && GIT_DIR=. git init
- mkdir some.git && cd some.git && git --bare init

(create a non-bare repository)
- mkdir .git && GIT_DIR=.git git init
- mkdir .git && GIT_DIR=`pwd`/.git git init

This comes with a new test script and also passes the existing
test suite, but there may be cases that are still broken with
the current tip of master and this patch does not yet fix. I'd
appreciate help in straightening this mess out.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

name-rev: Fix non-shortest descriptionJohannes Schindelin Mon, 27 Aug 2007 11:37:33 +0000 (12:37 +0100)

name-rev: Fix non-shortest description

Uwe Kleine-König noticed that under certain circumstances, name-rev
picked a non-optimal tag. Jeff King analyzed that name-rev only
takes into account the number of merge traversals, and then the
_last_ number in the description.

As an easy way to fix it, use a weighting factor for merge traversals:
A merge traversal is now made 65535 times more expensive than a
first-parent traversal.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Describe two-dot and three-dot notation for diff endpoints.Mike Hommey Tue, 28 Aug 2007 05:05:19 +0000 (22:05 -0700)

Describe two-dot and three-dot notation for diff endpoints.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-tag(1): Remove duplicate textJari Aalto Mon, 27 Aug 2007 05:54:32 +0000 (08:54 +0300)

git-tag(1): Remove duplicate text

Options -d, -l, -v have already been explained in OPTIONS below.

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitweb: Lift any characters restriction on searched... Petr Baudis Sat, 25 Aug 2007 22:18:47 +0000 (00:18 +0200)

gitweb: Lift any characters restriction on searched strings

Everything is already fully quoted along the way so I believe this to be
unnecessary at this point. It would pose trouble for regexp searches.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

RelNotes draft for 1.5.3 update.Junio C Hamano Mon, 27 Aug 2007 00:36:10 +0000 (17:36 -0700)

RelNotes draft for 1.5.3 update.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'master' of git://repo.or.cz/git-guiJunio C Hamano Mon, 27 Aug 2007 00:29:26 +0000 (17:29 -0700)

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

* 'master' of git://repo.or.cz/git-gui:
git-gui: Correct 'git gui blame' in a subdirectory
git-gui: Do not offer to stage three-way diff hunks into the index
git-gui: Refactor diff pane popup support for future improvements
git-gui: Fix "unoptimized loading" to not cause git-gui to crash
git-gui: Paper bag fix "Stage Hunk For Commit" in diff context menu
git-gui: Allow git-merge to use branch names in conflict markers
git-gui: Fix window manager problems on ion3

When nothing to git-commit, honor the git-status color... Brian Hetro Sun, 26 Aug 2007 18:35:26 +0000 (14:35 -0400)

When nothing to git-commit, honor the git-status color setting.

Instead of disabling color all of the time during a git-commit, allow
the user's config preference in the situation where there is nothing
to commit. In this situation, the status is printed to the terminal
and not sent to COMMIT_EDITMSG, so honoring the status color setting
is expected.

Signed-off-by: Brian Hetro <whee@smaertness.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

gitweb: Fix searchbox positioningPetr Baudis Sun, 26 Aug 2007 19:31:32 +0000 (21:31 +0200)

gitweb: Fix searchbox positioning

Currently, searchbox is CSS'd to have position: absolute, which has the
unfortunate consequence that if the viewport is too small and can't fit
into the page width together with the navbar, it gets overlapped and part
of the navbar gets obscured. This makes searchbox float: right instead,
thus the navbar simply gets wrapped.

Discovered and fix pointed out by Michael Olson <mwolson@gnu.org>.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'master' of git://linux-nfs.org/~bfields/gitJunio C Hamano Sun, 26 Aug 2007 20:18:12 +0000 (13:18 -0700)

Merge branch 'master' of git://linux-nfs.org/~bfields/git

* 'master' of git://linux-nfs.org/~bfields/git:
Documentation/user-manual.txt: fix a few omissions of gitlink commands.
user-manual: fix incorrect header level
user-manual: use pithier example commit
user-manual: introduce the word "commit" earlier
user-manual: minor editing for conciseness
user-manual: edit "ignoring files" for conciseness
Documentation/user-manual.txt: fix a few omissions of gitlink commands.

Merge branch 'maint'J. Bruce Fields Sun, 26 Aug 2007 14:36:38 +0000 (10:36 -0400)

Merge branch 'maint'

Conflicts:

Documentation/user-manual.txt

Documentation/user-manual.txt: fix a few omissions... David Kastrup Wed, 8 Aug 2007 15:34:28 +0000 (17:34 +0200)

Documentation/user-manual.txt: fix a few omissions of gitlink commands.

Signed-off-by: David Kastrup <dak@gnu.org>

user-manual: fix incorrect header levelJ. Bruce Fields Mon, 20 Aug 2007 15:12:09 +0000 (11:12 -0400)

user-manual: fix incorrect header level

This section is a subsection of the "Examples" section.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>