Re: Subtree in Git

2012-10-21 Thread Junio C Hamano
Herman van Rink r...@initfour.nl writes: Junio, Could you please consider merging the single commit from my subtree-updates branch? https://github.com/helmo/git/tree/subtree-updates In general, in areas like contrib/ where there is a volunteer area maintainer, unless the change something

Re: [PATCH v3 0/8] Fix GIT_CEILING_DIRECTORIES that contain symlinks

2012-10-21 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: This patch series has the side effect that all of the directories listed in GIT_CEILING_DIRECTORIES are accessed *unconditionally* to resolve any symlinks that are present in their paths. It is admittedly odd that a feature intended to avoid

Re: git config --unset does not remove section

2012-10-21 Thread Junio C Hamano
Angelo Borsotti angelo.borso...@gmail.com writes: Another git config foo.bar true changes the config file into: [foo] [foo] bar = true Having two sections with the same name clutters the config file. True. It would be nice if the removal of the last element removes the

[PATCH 0/2] Fix remaining issue when deleting symrefs

2012-10-21 Thread Johan Herland
The following two patches are based on rs/branch-del-symref, and fixes the remaining failure to delete a packed ref through a symref. The first patch demonstrates the bug with a testcase, and the second patch fixes the bug. Feel free to squash the two patches into one, if you prefer to keep both

[PATCH 1/2] t1400-update-ref: Add test verifying bug with symrefs in delete_ref()

2012-10-21 Thread Johan Herland
When deleting a ref through a symref (e.g. using 'git update-ref -d HEAD' to delete refs/heads/master), we currently fail to remove the packed version of that ref. This testcase demonstrates the bug. Signed-off-by: Johan Herland jo...@herland.net --- t/t1400-update-ref.sh | 18 ++

[PATCH 2/2] Fix failure to delete a packed ref through a symref

2012-10-21 Thread Johan Herland
When deleting a ref through a symref (e.g. using 'git update-ref -d HEAD' to delete refs/heads/master), we would remove the loose ref, but a packed version of the same ref would remain, the end result being that instead of deleting refs/heads/master we would appear to reset it to its state as of

[RFC/PATCH] git symbolic-ref --delete $symref

2012-10-21 Thread Johan Herland
Teach symbolic-ref to delete symrefs by adding the -d/--delete option to git-symbolic-ref. Both proper and dangling symrefs are deleted by this option, but other refs - or anything else that is not a symref - is not. The symref deletion is performed by first verifying that we are given a proper

Re: looking for suggestions for managing a tree of server configs

2012-10-21 Thread Drew Northup
On Sat, Oct 20, 2012 at 10:34 PM, da...@lang.hm wrote: On Sat, 20 Oct 2012, Drew Northup wrote: On Sun, Oct 14, 2012 at 12:57 AM, da...@lang.hm wrote: On Sat, 13 Oct 2012, Junio C Hamano wrote: da...@lang.hm writes: today I have just a single git tree covering everything, and I make a

Re: git fetch documentation problem or bug

2012-10-21 Thread Drew Northup
On Mon, Oct 8, 2012 at 7:33 PM, Junio C Hamano gits...@pobox.com wrote: Junio C Hamano gits...@pobox.com writes: In other words, you can do this from the command line if you want to do the update. $ git fetch origin master:refs/remotes/origin/master Now having said all that, we should

Re: In search of a version control system

2012-10-21 Thread Drew Northup
On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy matthieu@grenoble-inp.fr wrote: David Aguilar dav...@gmail.com writes: I would advise against the file locking, though. You ain't gonna need it ;-) What do you suggest to merge Word files? If the files are in the DOCX format you can just

Re: In search of a version control system

2012-10-21 Thread Nguyen Thai Ngoc Duy
On Sun, Oct 21, 2012 at 7:20 PM, Drew Northup n1xim.em...@gmail.com wrote: On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy matthieu@grenoble-inp.fr wrote: David Aguilar dav...@gmail.com writes: I would advise against the file locking, though. You ain't gonna need it ;-) What do you

Re: In search of a version control system

2012-10-21 Thread Sitaram Chamarty
On Sun, Oct 21, 2012 at 5:50 PM, Drew Northup n1xim.em...@gmail.com wrote: On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy matthieu@grenoble-inp.fr wrote: David Aguilar dav...@gmail.com writes: I would advise against the file locking, though. You ain't gonna need it ;-) What do you

Re: Subtree in Git

2012-10-21 Thread Herman van Rink
On 10/21/2012 08:32 AM, Junio C Hamano wrote: Herman van Rink r...@initfour.nl writes: Junio, Could you please consider merging the single commit from my subtree-updates branch? https://github.com/helmo/git/tree/subtree-updates In general, in areas like contrib/ where there is a volunteer

Re: [PATCH 2/2] Fix failure to delete a packed ref through a symref

2012-10-21 Thread René Scharfe
Am 21.10.2012 12:40, schrieb Johan Herland: When deleting a ref through a symref (e.g. using 'git update-ref -d HEAD' to delete refs/heads/master), we would remove the loose ref, but a packed version of the same ref would remain, the end result being that instead of deleting refs/heads/master we

[PATCH v3 0/6] New remote-hg helper

2012-10-21 Thread Felipe Contreras
I've looked at many hg-git tools and none satisfy me. Too complicated, or too slow, or to difficult to setup, etc. The only one I've liked so far is hg-fast-export[1], which is indeed fast, relatively simple, and relatively easy to use. But it's not properly maintained any more. So, I decided to

[PATCH v3 1/6] Add new remote-hg transport helper

2012-10-21 Thread Felipe Contreras
Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- contrib/remote-hg/git-remote-hg | 313 1 file changed, 313 insertions(+) create mode 100755 contrib/remote-hg/git-remote-hg diff --git a/contrib/remote-hg/git-remote-hg

[PATCH v3 2/6] remote-hg: add support for pushing

2012-10-21 Thread Felipe Contreras
Some parsing of fast-export parsing might be missing, but I couldn't find any. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- contrib/remote-hg/git-remote-hg | 156 +++- 1 file changed, 154 insertions(+), 2 deletions(-) diff --git

[PATCH v3 3/6] remote-hg: add support for remote pushing

2012-10-21 Thread Felipe Contreras
I'm not happy with this, but works. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- contrib/remote-hg/git-remote-hg | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/remote-hg/git-remote-hg b/contrib/remote-hg/git-remote-hg index

[PATCH v3 5/6] tests: add remote-hg tests

2012-10-21 Thread Felipe Contreras
From the original remote-hg. You need git-remote-hg already in your path to run them. I'm not proposing to include this patch like this, but should make it easier to test. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- t/t5801-remote-hg.sh | 143

[PATCH v3 6/6] tests: fix remote-hg warnings for modern git

2012-10-21 Thread Felipe Contreras
Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- t/t5801-remote-hg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5801-remote-hg.sh b/t/t5801-remote-hg.sh index 2e68372..ba4d7a2 100755 --- a/t/t5801-remote-hg.sh +++ b/t/t5801-remote-hg.sh @@ -95,7

Re: [PATCH] Fix git p4 sync errors

2012-10-21 Thread Junio C Hamano
[Added area experts of git-p4 to Cc.] Matt Arsenault arse...@gmail.com writes: From 425e4dc6992d07aa00039c5bb8e8c76def591fd3 Mon Sep 17 00:00:00 2001 From: Matt Arsenault arse...@gmail.com Date: Sat, 20 Oct 2012 18:48:45 -0700 Subject: [PATCH] git-p4: Fix not using -s option to describe

Re: [PATCH 2/2] Fix failure to delete a packed ref through a symref

2012-10-21 Thread Junio C Hamano
Johan Herland jo...@herland.net writes: When deleting a ref through a symref (e.g. using 'git update-ref -d HEAD' to delete refs/heads/master), we would remove the loose ref, but a packed version of the same ref would remain, the end result being that instead of deleting refs/heads/master we

Re: [RFC/PATCH] git symbolic-ref --delete $symref

2012-10-21 Thread Junio C Hamano
Johan Herland jo...@herland.net writes: Teach symbolic-ref to delete symrefs by adding the -d/--delete option to git-symbolic-ref. Both proper and dangling symrefs are deleted by this option, but other refs - or anything else that is not a symref - is not. The symref deletion is performed by

[PATCH] transport-helper: check when helpers fail

2012-10-21 Thread Felipe Contreras
Otherwise transport-helper will continue checking for refs and other things what will confuse the user more. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- git-remote-testgit.py | 3 +++ run-command.c | 17 + run-command.h | 1 +

Re: git fetch documentation problem or bug

2012-10-21 Thread Junio C Hamano
Drew Northup n1xim.em...@gmail.com writes: On Mon, Oct 8, 2012 at 7:33 PM, Junio C Hamano gits...@pobox.com wrote: Junio C Hamano gits...@pobox.com writes: I personally do not think the downside of breaking backward compatibility is too bad. If we do this only when we already are

Re: Subtree in Git

2012-10-21 Thread Junio C Hamano
Herman van Rink r...@initfour.nl writes: On 10/21/2012 08:32 AM, Junio C Hamano wrote: Herman van Rink r...@initfour.nl writes: Junio, Could you please consider merging the single commit from my subtree-updates branch? https://github.com/helmo/git/tree/subtree-updates In general, in areas

[PATCH] Add -S, --gpg-sign option to manpage of git commit

2012-10-21 Thread Tom Jones
git commit -S, --gpg-sign was mentioned in the program's help message, but not in the manpage. This adds an equivalent entry for the option in the manpage. --- Documentation/git-commit.txt |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Documentation/git-commit.txt

Re: [PATCH] Add new git-remote-hd helper

2012-10-21 Thread Johannes Schindelin
Hi Felipe, On Sun, 21 Oct 2012, Felipe Contreras wrote: On Thu, Oct 18, 2012 at 10:47 AM, Johannes Schindelin johannes.schinde...@gmx.de wrote: Without push support, remote-hg is useless to me. Without regression tests proving that it is rock solid, I will not use remote-hg. Done and

Re: [PATCH] Add -S, --gpg-sign option to manpage of git commit

2012-10-21 Thread Junio C Hamano
Tom Jones t...@oxix.org writes: git commit -S, --gpg-sign was mentioned in the program's help message, but not in the manpage. This adds an equivalent entry for the option in the manpage. --- Sign off? Documentation/git-commit.txt |6 +- 1 files changed, 5 insertions(+), 1

Re: Subtree in Git

2012-10-21 Thread Herman van Rink
On 10/21/2012 09:51 PM, Junio C Hamano wrote: Herman van Rink r...@initfour.nl writes: On 10/21/2012 08:32 AM, Junio C Hamano wrote: Herman van Rink r...@initfour.nl writes: Junio, Could you please consider merging the single commit from my subtree-updates branch?

Re: [PATCH] Add new git-remote-hd helper

2012-10-21 Thread Felipe Contreras
On Sun, Oct 21, 2012 at 10:03 PM, Johannes Schindelin johannes.schinde...@gmx.de wrote: On Sun, 21 Oct 2012, Felipe Contreras wrote: On Thu, Oct 18, 2012 at 10:47 AM, Johannes Schindelin johannes.schinde...@gmx.de wrote: Without push support, remote-hg is useless to me. Without regression

Re: [PATCH] transport-helper: check when helpers fail

2012-10-21 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: Otherwise transport-helper will continue checking for refs and other things what will confuse the user more. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- git-remote-testgit.py | 3 +++ run-command.c |

[PATCH] Doc repository-layout: Show refs/replace

2012-10-21 Thread Philip Oakley
Signed-off-by: Philip Oakley philipoak...@iee.org --- My question on stackoverflow http://stackoverflow.com/questions/6800692 how-do-git-grafts-and-replace-differ-are-grafts-now-deprecated noted that the gitrepository-layout(5) wasn't up to date. Recent hits have propmted me to offer a patch.

Re: [PATCH v3 5/6] tests: add remote-hg tests

2012-10-21 Thread Sverre Rabbelier
On Sun, Oct 21, 2012 at 10:49 AM, Felipe Contreras felipe.contre...@gmail.com wrote: From the original remote-hg. You need git-remote-hg already in your path to run them. I'm not proposing to include this patch like this, but should make it easier to test. You should also have a look at

Re: [BUG?] git-subtree behavior when the -P tree is removed and recreated

2012-10-21 Thread Tomi Belan
This probably got lost in the mail. Could somebody familiar with git-subtree take a look? Tomi On Sat, Oct 13, 2012 at 3:47 PM, Tomi Belan tomi.be...@gmail.com wrote: Hello folks, I think I might've found a bug in git-subtree: I have a repository containing a directory foo. I'd like to use

clone over slow/ unreliable network / partial clone with full history

2012-10-21 Thread Gelonida N
Hi, Sometimes I have to clone a repository over a slow / rather unreliable network and wonder whether there are any tools tricks to reduce the pain for such cases. I'm having two problems: Problem 1: Resuming a clone: - When the connection gets cut during the

[PATCH] Doc notes: Include the format-patch --notes option

2012-10-21 Thread Philip Oakley
git format-patch gained a --notes option. Tell the notes user. Signed-off-by: Philip Oakley philipoak...@iee.org --- Documentation/git-notes.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/git-notes.txt b/Documentation/git-notes.txt index b95aafa..46ef046 100644 ---

[PATCH] Doc format-patch: clarify --notes use case

2012-10-21 Thread Philip Oakley
Remove double negative, and include the repeat usage across versions of a patch series. Signed-off-by: Philip Oakley philipoak...@iee.org --- Documentation/git-format-patch.txt | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Documentation/git-format-patch.txt

[PATCH] Doc SubmittingPatches: Mention --notes option after cover letter

2012-10-21 Thread Philip Oakley
The git format-patch --notes option can now insert the commit notes after the three dashes. Mention this after the regular cover letter guidance for submitting patches. Signed-off-by: Philip Oakley philipoak...@iee.org --- Documentation/SubmittingPatches | 3 ++- 1 file changed, 2 insertions(+),

[ANNOUNCE] Git v1.8.0

2012-10-21 Thread Junio C Hamano
The latest feature release Git v1.8.0 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: a03afc33f8f0723ad12649d79f1e8968526b4bf7 git-1.8.0.tar.gz 93c860cf4cd26d4b3e269b0903b833db1c1f0f8e

A note from the maintainer

2012-10-21 Thread Junio C Hamano
Welcome to the Git development community. This message is written by the maintainer and talks about how Git project is managed, and how you can work with it. * Mailing list and the community The development is primarily done on the Git mailing list. Help requests, feature proposals, bug reports

What's cooking in git.git (Oct 2012, #07; Sun, 21)

2012-10-21 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The 1.8.0 release has been tagged. I'd disappear for a few weeks without carrying a computer, and Git will be in steady hands of Jeff King

Re: [PATCH v2 0/2] Re: gitk: can't reload commits with new key binding

2012-10-21 Thread Paul Mackerras
On Tue, Oct 02, 2012 at 11:04:43AM -0400, Andrew Wong wrote: Refactored the code for binding modified function keys as Junio suggested. Andrew Wong (2): gitk: Refactor code for binding modified function keys gitk: Use bindshiftfunctionkey to bind Shift-F5 gitk | 10 +++--- 1

Re: [PATCH] transport-helper: check when helpers fail

2012-10-21 Thread Felipe Contreras
On Sun, Oct 21, 2012 at 10:33 PM, Junio C Hamano gits...@pobox.com wrote: Felipe Contreras felipe.contre...@gmail.com writes: +int check_command(struct child_process *cmd) +{ + int status; + pid_t pid; + + pid = waitpid(cmd-pid, status, WNOHANG); + + if (pid 0) +

Re: [BUG] gitk: clicking on a connecting line produces can't read cflist_top

2012-10-21 Thread Paul Mackerras
On Thu, Oct 04, 2012 at 10:50:15PM +0200, Stefan Haller wrote: Sorry, I didn't realize that there is a display mode where the list of files is empty, not even showing a Comments entry. Here's a patch that fixes it, plus another patch that is only related in so far as the bug that it fixes

Re: [PATCH] gitk: Fix crash when not using themed widgets

2012-10-21 Thread Paul Mackerras
On Sun, Oct 07, 2012 at 11:21:14PM +0200, Marcus Karlsson wrote: When configured not to use themed widgets gitk may crash on launch with a message that says that the image bm-left disabled bm-left-gray doesn't exist. This happens when the left and right arrow buttons are created. The crash

Re: [PATCH] gitk: Update Swedish translation (296t)

2012-10-21 Thread Paul Mackerras
On Wed, Oct 03, 2012 at 08:22:17AM +0100, Peter Krefting wrote: This patch updates the Swedish translation for gitk. To avoid the UTF-8 encoding of the file to be mangled by my email software, the patch is attached gzip'ed. -- \\// Peter - http://www.softwolves.pp.se/ Thanks, applied.

Re: looking for suggestions for managing a tree of server configs

2012-10-21 Thread david
On Sun, 21 Oct 2012, Drew Northup wrote: On Sat, Oct 20, 2012 at 10:34 PM, da...@lang.hm wrote: On Sat, 20 Oct 2012, Drew Northup wrote: On Sun, Oct 14, 2012 at 12:57 AM, da...@lang.hm wrote: On Sat, 13 Oct 2012, Junio C Hamano wrote: da...@lang.hm writes: today I have just a single git

Re: [PATCH v5 1/3] completion: add new __gitcompadd helper

2012-10-21 Thread Felipe Contreras
On Wed, Oct 17, 2012 at 7:28 PM, SZEDER Gábor sze...@ira.uka.de wrote: On Sun, Oct 14, 2012 at 05:52:49PM +0200, Felipe Contreras wrote: diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index d743e56..01325de 100644 ---

[PATCH 1/2] completion: refactor __gitcomp related tests

2012-10-21 Thread Felipe Contreras
Lots of duplicated code! No functional changes. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- t/t9902-completion.sh | 72 --- 1 file changed, 23 insertions(+), 49 deletions(-) diff --git a/t/t9902-completion.sh

[PATCH 2/2] completion: simplify __gitcomp test helper

2012-10-21 Thread Felipe Contreras
By using print_comp as suggested by SZEDER Gábor. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- t/t9902-completion.sh | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 1c6952a..2e7fc06 100755 ---

[PATCH v6 0/3] completion: refactor and zsh wrapper

2012-10-21 Thread Felipe Contreras
Hi, Here's a bit of reorganition. I'm introducing a new __gitcompadd helper that is useful to wrapp all changes to COMPREPLY, but first, lets get rid of unnecessary assignments as SZEDER suggested. The zsh wrapper is now very very simple. Since v5: * Get rid of unnecessary COMPREPLY

[PATCH v6 1/3] completion: get rid of empty COMPREPLY assignments

2012-10-21 Thread Felipe Contreras
There's no functional reason for those, the only purpose they are supposed to serve is to say we don't provide any words here, but even for that it's not used consitently. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- contrib/completion/git-completion.bash | 28

[PATCH v6 2/3] completion: add new __gitcompadd helper

2012-10-21 Thread Felipe Contreras
The idea is to never touch the COMPREPLY variable directly. This allows other completion systems override __gitcompadd, and do something different instead. Also, this allows the simplification of the completion tests (separate patch). There should be no functional changes. Signed-off-by:

[PATCH v6 3/3] completion: add new zsh completion

2012-10-21 Thread Felipe Contreras
It seems there's always issues with zsh's bash completion emulation. I've tried to fix as many as I could and most of the fixes are already in the latest version of zsh, but still, there are issues. There is no point in going through all that pain; the emulation is easy to achieve, and this patch

Re: Links broken in ref docs.

2012-10-21 Thread Andrew Ardill
On 21 October 2012 18:31, Mike Norman mknor...@gmail.com wrote: Many links on scm-git.org/docs simply reload the page. For example, all of Sharing and Updating section simply reload the docs page. And tons others. Must be a broken link or routing problem. Repros on FF 14.0.1 and Chrome. Good