How to you uninstall properly Git on a Mac?

2014-06-05 Thread Romain Poirier
Hello, How to you uninstall properly Git on a Mac? Unfortunately, it seems to not be documented on your website… Thanks for your help! Romain -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [RFC PATCH] clone: add clone.recursesubmodules config option

2014-06-05 Thread Chris Packham
On 05/06/14 07:42, Heiko Voigt wrote: > On Wed, Jun 04, 2014 at 10:24:06AM -0700, Junio C Hamano wrote: >> Chris Packham writes: >> >>> On 04/06/14 09:05, Junio C Hamano wrote: > Also, going --recursive when the user did not want is a lot more > expensive mistake to fix than not being --re

[PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Stepan Kasal
From: Johannes Schindelin Date: Wed, 2 Jun 2010 00:41:33 +0200 If HOME is not set, use $HOMEDRIVE$HOMEPATH Signed-off-by: Johannes Schindelin Signed-off-by: Stepan Kasal --- Hello Karsten, thanks for your explanation. There are more things to be done, but I hope you can ack this patch as a s

[PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Stepan Kasal
mingw.c defines several wrapper functionsi, like mingw_unlink(). These wrappers are deployed by macros like this: #define unlink mingw_unlink The function itself is preceded by #undef, leaving the wrapper out of the game for the rest of mingw.c. This was not probably intentional; for examp

Re: Git autocorrect bug

2014-06-05 Thread David Turner
On Thu, 2014-06-05 at 13:29 +0700, Duy Nguyen wrote: > On Thu, Jun 5, 2014 at 10:49 AM, David Turner > wrote: > > fatal: internal error: work tree has already been set > > Current worktree: /home/dturner/git > > New worktree: /home/dturner/git/foo > > This is the part you complain about, right?

Re: [msysGit] [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Torsten Bögershausen
On 2014-06-05 10.03, Stepan Kasal wrote: > From: Johannes Schindelin > Date: Wed, 2 Jun 2010 00:41:33 +0200 > > If HOME is not set, use $HOMEDRIVE$HOMEPATH > > Signed-off-by: Johannes Schindelin > Signed-off-by: Stepan Kasal > --- > > Hello Karsten, > thanks for your explanation. There are m

Kedves felhasználók e-mailben;

2014-06-05 Thread WEBMAIL UPDATE
Kedves felhasználók e-mailben; Túllépte 23432 box set Web Service / Admin, és akkor nem lesz probléma a küldő és fogadhat e-maileket, amíg újra ellenőrizni. Kérjük, frissítse kattintva linkre, és töltse ki az adatokat, hogy ellenőrizze a számla Kérjük, kövesse az alábbi linkre, és majd másolja és

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Karsten Blees
Am 05.06.2014 10:03, schrieb Stepan Kasal: > From: Johannes Schindelin > Date: Wed, 2 Jun 2010 00:41:33 +0200 > > If HOME is not set, use $HOMEDRIVE$HOMEPATH > > Signed-off-by: Johannes Schindelin > Signed-off-by: Stepan Kasal > --- > > Hello Karsten, > thanks for your explanation. There are

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Erik Faye-Lund
On Thu, Jun 5, 2014 at 11:40 AM, Karsten Blees wrote: > Am 05.06.2014 10:03, schrieb Stepan Kasal: >> From: Johannes Schindelin >> Date: Wed, 2 Jun 2010 00:41:33 +0200 >> >> If HOME is not set, use $HOMEDRIVE$HOMEPATH >> >> Signed-off-by: Johannes Schindelin >> Signed-off-by: Stepan Kasal >> --

[PATCH v3] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Stepan Kasal
From: Johannes Schindelin Date: Wed, 2 Jun 2010 00:41:33 +0200 If HOME is not set, use $HOMEDRIVE$HOMEPATH Signed-off-by: Johannes Schindelin Signed-off-by: Stepan Kasal --- On Thu, Jun 05, 2014 at 10:32:44AM +0200, Torsten Bögershausen wrote: > > + strbuf_addf(&buf, "%s%s", getenv_

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Stepan Kasal
Hello, On Thu, Jun 05, 2014 at 11:40:50AM +0200, Karsten Blees wrote: > Am 05.06.2014 10:03, schrieb Stepan Kasal: > > I hope you can ack this patch as a step forward. > > No, not really. It's sure better than introducing a special > get_home_directory(), but it still increases the diff between >

Re: [msysGit] Re: [PATCH] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Johannes Schindelin
Hi Karsten, On Thu, 5 Jun 2014, Karsten Blees wrote: > After a bit of digging in the history and the old googlegroups issue > tracker, I think this patch is completely unrelated to the non-ASCII > problems. Actually, the non-ASCII problems were the trigger for my patch. > In summary, this patch

Hello !

2014-06-05 Thread Song Chen
Dear Friend, I am Song Chen I have a Business Proposal of $12.8m USD for you to handle with me from my bank contact me for more information (song_chen.2...@foxmail.com) Regards, Mr Song Chen -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord..

Re: [msysGit] Re: [PATCH] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Stepan Kasal
Hi, On Thu, Jun 05, 2014 at 02:03:39PM +0200, Johannes Schindelin wrote: > Render me even more convinced that the API call is the cleanest way to go, But not me. In a paralel post, Duy Nguyen wrote: > Thank you for working on pushing msysgit patches upstream. I don't use > git on windows, but

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread Torsten Bögershausen
On 2014-06-04 23.16, David Turner wrote: > > Sure! I actually went with > 120k to make measurement easier: > https://github.com/dturner-tw/many-refs Hm, I didn't get so man git remote -v origin https://github.com/dturner-tw/many-refs wc .git/packed-refs 7501130 38868 .git/packed-

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread Ondřej Bílka
On Thu, Jun 05, 2014 at 02:30:17PM +0200, Torsten Bögershausen wrote: > On 2014-06-04 23.16, David Turner wrote: > > > > Sure! I actually went with > 120k to make measurement easier: > > https://github.com/dturner-tw/many-refs > Hm, I didn't get so man > > git remote -v > origin https://github.

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Johannes Schindelin
Hi Karsten, On Thu, 5 Jun 2014, Karsten Blees wrote: > Am 05.06.2014 10:03, schrieb Stepan Kasal: > > * even if $HOME was empty, git should setenv("HOME") so that child > processes can benefit from it (similar to TMPDIR and TERM in current > msysgit's mingw_startup()). Not setting $HOME becau

FW: Git crash in windows 2012 R2

2014-06-05 Thread Fran Mico
Hi, My name is Fran, we are a development team who uses git. We have our Development Environment in the server office (Windows 2008 R2) where everything runs without problems. We are planning to move to Windows Azure so we bought a virtual server to try our Development Environment and check the

Submodules with feature branches

2014-06-05 Thread Robert Dailey
I have a question regarding submodules and their applicability given our workflow at the place I work. When I work on a feature, I normally create a feature branch. If I happen to make changes to the submodule that only work with the changes introduced in my feature branch, that seems to complicat

Re: Best practices/conventions for tags and references in commit message

2014-06-05 Thread Thomas Koch
On Tuesday, May 27, 2014 03:49:24 PM Johan Herland wrote: > Search the mailing list archives for git-interpret-trailers. It's coming. Nice! I started a table to collect how different projects or tools use trailers: https://git.wiki.kernel.org/index.php/CommitMessageConventions#Trailers It would b

Re: [msysGit] Re: [PATCH] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Karsten Blees
Am 05.06.2014 14:03, schrieb Johannes Schindelin: > Hi Karsten, > > On Thu, 5 Jun 2014, Karsten Blees wrote: > >> After a bit of digging in the history and the old googlegroups issue >> tracker, I think this patch is completely unrelated to the non-ASCII >> problems. > > Actually, the non-ASCII

Re: [PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Karsten Blees
Am 05.06.2014 10:05, schrieb Stepan Kasal: > mingw.c defines several wrapper functionsi, like mingw_unlink(). > These wrappers are deployed by macros like this: > #define unlink mingw_unlink > The function itself is preceded by #undef, leaving the wrapper out > of the game for the rest of min

Proposal for pruning tags

2014-06-05 Thread Robert Dailey
I've never contributed to the Git project before. I'm a Windows user, so I use msysgit, but I'd be happy to install linux just so I can help implement this feature if everyone feels it would be useful. Right now AFAIK, there is no way to prune tags through Git. The way I currently do it is like so

Re: [msysGit] Re: [PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Stepan Kasal
Hello Karsten, On Thu, Jun 05, 2014 at 04:51:39PM +0200, Karsten Blees wrote: > In the current msysgit HEAD, most of these #undef's can simply be > removed or have already been removed [...] not "most of." According to my quick count, 6 of 20 have been removed, 2 more can be removed. The remain

Re: Submodules with feature branches

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 09:03:25AM -0500, Robert Dailey wrote: > When I work on a feature, I normally create a feature branch. If I > happen to make changes to the submodule that only work with the > changes introduced in my feature branch, that seems to complicate > things. For the purposes of the

Re: [PATCH v2 8/9] fetch doc: add a section on configured remote-tracking branches

2014-06-05 Thread Marc Branchaud
On 14-06-04 06:17 PM, Junio C Hamano wrote: > Marc Branchaud writes: > > [jc: omitted good suggestions I'll use in amending] > >>> + the refspecs to be used to fetch. The example above will fetch >> >> /to be used// > > I have a problem with that change, actually, because you do not > "fetch"

[PATCH] docs: Explain the purpose of fetch's and pull's parameter.

2014-06-05 Thread Marc Branchaud
Signed-off-by: Marc Branchaud --- Documentation/git-fetch.txt| 4 ++-- Documentation/pull-fetch-param.txt | 17 ++--- 2 files changed, 16 insertions(+), 5 deletions(-) On 14-06-04 06:17 PM, Junio C Hamano wrote: > > Perhaps > > ... `remote..fetch` values are used as th

Re: [PATCH v2 9/9] fetch: allow explicit --refmap to override configuration

2014-06-05 Thread Marc Branchaud
On 14-06-04 06:28 PM, Junio C Hamano wrote: > Marc Branchaud writes: > >>> Teach the command to pay attention to the --refmap=: >>> command-line options that can be used to override the use of >>> configured remote.*.fetch as the refmap. >> >> (Your 0/9 message merely said "The new patches at the

Re: Submodules with feature branches

2014-06-05 Thread Robert Dailey
On Thu, Jun 5, 2014 at 10:15 AM, W. Trevor King wrote: > So you have: > > On the trunk host: On your public host: Locally: > superproject superproject superproject > submodulesubmodule `-- submodule > > In that case, a corresponding feature bran

Re: Submodules with feature branches

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 10:57:17AM -0500, Robert Dailey wrote: > I was planning on creating a submodule for our third party libs and > store them extracted in there. 3rd party libraries sound loosely-coupled to me ;). In one of my more mature projects I did a similar thing, and just used relative

Re: Best practices/conventions for tags and references in commit message

2014-06-05 Thread Christian Couder
On Thu, Jun 5, 2014 at 4:10 PM, Thomas Koch wrote: > On Tuesday, May 27, 2014 03:49:24 PM Johan Herland wrote: >> Search the mailing list archives for git-interpret-trailers. It's coming. > Nice! > > I started a table to collect how different projects or tools use trailers: > https://git.wiki.kern

Re: [msysGit] [PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Johannes Sixt
Am 05.06.2014 10:05, schrieb Stepan Kasal: > mingw.c defines several wrapper functionsi, like mingw_unlink(). > These wrappers are deployed by macros like this: > #define unlink mingw_unlink > The function itself is preceded by #undef, leaving the wrapper out > of the game for the rest of min

Re: [git] [PATCH 2/5] implement submodule config cache for lookup of submodule names

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 08:07:50AM +0200, Heiko Voigt wrote: > +The caller can look up information about submodules by using the > +`submodule_from_path()` or `submodule_from_name()` functions. That's for an already-known submodule. Do we need a way to list submodules (e.g. for 'submodule foreach

Re: [RFC PATCH] clone: add clone.recursesubmodules config option

2014-06-05 Thread Junio C Hamano
Jens Lehmann writes: > ... I believe we > should have one or two switches telling Git "I want my submodules be > updated without having to use the 'git submodule' command". And > after that submodule specific overrides can kick in, e.g. when > "submodule..update" is set to "none" the submodule wo

Re: Submodules with feature branches

2014-06-05 Thread Robert Dailey
On Thu, Jun 5, 2014 at 11:23 AM, W. Trevor King wrote: > 3rd party libraries sound loosely-coupled to me ;). In one of my more > mature projects I did a similar thing, and just used relative URLs [1] > and sibling mirrors/forks [2,3,4]. > > Cheers, > Trevor > > [1]: https://github.com/wking/pygra

Re: [PATCH v2 9/9] fetch: allow explicit --refmap to override configuration

2014-06-05 Thread Junio C Hamano
Marc Branchaud writes: > I don't have any objection to the option per se. But I do wonder if there's > a need to add yet another knob to git just for completeness. Has anyone ever > needed this? It is not a good yardstick, as everybody has survived without it since Git's inception. The right

Re: [git] Re: [RFC PATCH] clone: add clone.recursesubmodules config option

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 11:18:28AM -0700, Junio C Hamano wrote: > Jens Lehmann writes: > > We had two settings in mind,... > > So what if clone would just do an "git submodule init" for now when > > "submodule.autoinit" is set but "submodule.autoupdate" isn't [?] > > ... and a single "submodule.au

Re: Submodules with feature branches

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 01:31:39PM -0500, Robert Dailey wrote: > On Thu, Jun 5, 2014 at 11:23 AM, W. Trevor King wrote: > > 3rd party libraries sound loosely-coupled to me ;). In one of my more > > mature projects I did a similar thing, and just used relative URLs [1] > > and sibling mirrors/forks

Re: Submodules with feature branches

2014-06-05 Thread W. Trevor King
On Thu, Jun 05, 2014 at 12:00:33PM -0700, W. Trevor King wrote: > On Thu, Jun 05, 2014 at 01:31:39PM -0500, Robert Dailey wrote: > > Instead of just creating my branch and starting to make commits, I > > now have to setup my submodule branch first. Also pull requests > > won't show the changes to t

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
On Thu, 2014-06-05 at 14:30 +0200, Torsten Bögershausen wrote: > On 2014-06-04 23.16, David Turner wrote: > > > > Sure! I actually went with > 120k to make measurement easier: > > https://github.com/dturner-tw/many-refs > Hm, I didn't get so man > > git remote -v > origin https://github.com/dtu

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
On Wed, 2014-06-04 at 14:46 -0700, Junio C Hamano wrote: > David Turner writes: > > > On Wed, 2014-06-04 at 10:04 +0200, Torsten Bögershausen wrote: > > [snip discussion of compiler flags; I'll look into a cpuid approach] > > H, I am not sure if the complexity is really worth it. > > In any

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Karsten Blees
Am 05.06.2014 15:39, schrieb Johannes Schindelin: > And in particular with your changes to Unicodify the complete environment, > I am *highly* doubtful that child processes will be able to handle > themselves properly, unless we spend a whole lot of time converting back > and forth the environment

Re: Proposal for pruning tags

2014-06-05 Thread Junio C Hamano
Robert Dailey writes: > I've never contributed to the Git project before. I'm a Windows user, > so I use msysgit, but I'd be happy to install linux just so I can help > implement this feature if everyone feels it would be useful. > > Right now AFAIK, there is no way to prune tags through Git. The

Re: [PATCH v2 10/11] test-lib: make it possible to override how test code is eval'd

2014-06-05 Thread Junio C Hamano
Richard Hansen writes: > Because test_eval_ is defined while zsh is in sh emulation mode, the > shell code passed as an argument to test_expect_success would normally > be evaluated in sh emulation mode. However, with this change, it is > now possible to evaluate the test code in zsh mode by add

[PATCH] t5551: fix the 50,000 tag test

2014-06-05 Thread Torsten Bögershausen
The first version of test 23 did simply check that no output was send to stderr. Commit 5e2c7cd2 verified that the expected tags were actually cloned. Since the day "git clone" printed "Cloning into 'too-many-refs'" to stderr, the test failed because stderr was not empty. Remove the check for st

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread Torsten Bögershausen
On 2014-06-05 21.26, David Turner wrote: > On Thu, 2014-06-05 at 14:30 +0200, Torsten Bögershausen wrote: >> On 2014-06-04 23.16, David Turner wrote: >>> >>> Sure! I actually went with > 120k to make measurement easier: >>> https://github.com/dturner-tw/many-refs >> Hm, I didn't get so man >> >> g

Re: [PATCH v2] Add a Windows-specific fallback to getenv("HOME");

2014-06-05 Thread Karsten Blees
Am 05.06.2014 11:58, schrieb Erik Faye-Lund: > On Thu, Jun 5, 2014 at 11:40 AM, Karsten Blees > wrote: >> Am 05.06.2014 10:03, schrieb Stepan Kasal: >>> From: Johannes Schindelin >>> Date: Wed, 2 Jun 2010 00:41:33 +0200 >>> >>> If HOME is not set, use $HOMEDRIVE$HOMEPATH >>> >>> Signed-off-by: J

Re: [PATCH v3 1/4] replace: add --graft option

2014-06-05 Thread Junio C Hamano
Christian Couder writes: > +static int create_graft(int argc, const char **argv, int force) > +{ > + unsigned char old[20], new[20]; > + const char *old_ref = argv[0]; > + struct commit *commit; > + struct strbuf buf = STRBUF_INIT; > + struct strbuf new_parents = STRBUF_INIT;

Re: [PATCH v3 4/4] contrib: add convert-grafts-to-replace-refs.sh

2014-06-05 Thread Junio C Hamano
Christian Couder writes: > diff --git a/contrib/convert-grafts-to-replace-refs.sh > b/contrib/convert-grafts-to-replace-refs.sh > new file mode 100755 > index 000..8472879 > --- /dev/null > +++ b/contrib/convert-grafts-to-replace-refs.sh > @@ -0,0 +1,29 @@ > +#!/bin/sh > + > +# You should ex

Re: [msysGit] [PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Karsten Blees
Am 05.06.2014 18:56, schrieb Johannes Sixt: > Am 05.06.2014 10:05, schrieb Stepan Kasal: >> mingw.c defines several wrapper functionsi, like mingw_unlink(). >> These wrappers are deployed by macros like this: >> #define unlink mingw_unlink >> The function itself is preceded by #undef, leaving

Re: [PATCH v6 2/2] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
On Thu, 2014-06-05 at 23:42 +0200, Torsten Bögershausen wrote: > On 2014-06-05 21.26, David Turner wrote: > > On Thu, 2014-06-05 at 14:30 +0200, Torsten Bögershausen wrote: > >> On 2014-06-04 23.16, David Turner wrote: > >>> > >>> Sure! I actually went with > 120k to make measurement easier: > >>>

Re: [PATCH] docs: Explain the purpose of fetch's and pull's parameter.

2014-06-05 Thread Junio C Hamano
Marc Branchaud writes: > This patch applies atop your 8/9. I feel strongly that some kind of > reference should accompany this description, and your new CONFIGURED > REMOTE-TRACKING BRANCHES section seems like a good one for the fetch > variant, but since pull's variant doesn't have that section

Re: [msysGit] Re: [PATCH] mingw: redefine the wrapper macro after the corresponding function

2014-06-05 Thread Karsten Blees
Am 05.06.2014 17:13, schrieb Stepan Kasal: > Hello Karsten, > > On Thu, Jun 05, 2014 at 04:51:39PM +0200, Karsten Blees wrote: >> In the current msysgit HEAD, most of these #undef's can simply be >> removed or have already been removed [...] > > not "most of." According to my quick count, 6 of 2

Re: [PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-05 Thread Junio C Hamano
Sup Yut Sum writes: > async is in C# 5.0 > foreach is in C# 1.0 > instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0 This one made me read it twice, until I realized you meant instanceof() is listed as keywords, but there is no such thing (it is in Java, though);

Re: [PATCH] environment: enable core.preloadindex by default

2014-06-05 Thread Junio C Hamano
Steve Hoelzer writes: > There is consensus that the default should change because it will > benefit nearly all users (some just a little, but some a lot). > See [1] and replies. > > [1]: > http://git.661346.n2.nabble.com/git-status-takes-30-seconds-on-Windows-7-Why-tp7580816p7580853.html > > Sig

[PATCH 0/4] Use transactions for renames

2014-06-05 Thread Ronnie Sahlberg
This series is based on ref-transactions-reflog It is also available at https://github.com/rsahlberg/git/tree/ref-transactions-rename This series adds support to perform rename_ref as a single transaction for both deleting/re-creating the ref and updating the reflog. Since we no longer use rename

[PATCH 3/4] refs.c: use packed refs when deleting refs during a transaction

2014-06-05 Thread Ronnie Sahlberg
Make the deletion of refs during a transaction more atomic. Start by first copying all loose refs we will be deleting to the packed refs file and then commit the packed refs file. Then re-lock the packed refs file to avoid anyone else from modifying the refs we are to delete during this transaction

[PATCH 4/4] refs.c: update rename_ref to use a transaction

2014-06-05 Thread Ronnie Sahlberg
Change refs.c to use a single transaction to copy/rename both the refs and its reflog. Since we are no longer using rename() to move the reflog file we no longer need to disallow rename_ref for refs with a symlink for its reflog so we can remove that test from the testsuite. Signed-off-by: Ronnie

[PATCH 1/2] refs.c: write updates to packed refs when a transaction has more than one ref

2014-06-05 Thread Ronnie Sahlberg
When we are updating more than one single ref, i.e. not a commit, then write the updated refs directly to the packed refs file instead of writing them as loose refs. Change clone to use a transaction instead of using the pacekd refs api. Signed-off-by: Ronnie Sahlberg --- builtin/clone.c | 16 +

[PATCH 2/2] refs.c: make the *_packed_refs functions static

2014-06-05 Thread Ronnie Sahlberg
We no longer need to expose the lock/add/commit/rollback functions for packed refs anymore so make them static and remove them from the api. Signed-off-by: Ronnie Sahlberg --- refs.c | 8 refs.h | 28 2 files changed, 4 insertions(+), 32 deletions(-) diff

[PATCH 1/4] refs.c: allow passing raw git_committer_info as email to _update_reflog

2014-06-05 Thread Ronnie Sahlberg
In many places in the code we do not have access to the individual fields in the committer data. Instead we might only have access to prebaked data such as what is returned by git_committer_info() containing a string that consists of email, timestamp, zone etc. This makes it inconvenient to use tr

[PATCH 0/2] Write multi-ref updates directly to packed refs

2014-06-05 Thread Ronnie Sahlberg
This patch adds support to the transaction system to update all non-refs as packed refs instead of loose refs. This series can also be found at https://github.com/rsahlberg/git/tree/ref-transactions-req-packed-refs This series adds support to have transaction write updates to packed refs instead

[PATCH v7 0/1] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
Since Junio has picked up the first patch from previous versions of this series, I'm just going to send the second (SSE) one. I decided not to s/NO_SSE42/!HAVE_SSE42/ because it looks like git mostly uses the former convention (for instance, that's what GIT_PARSE_WITH generates). Thanks for all o

[PATCH v7 1/1] refs.c: SSE4.2 optimizations for check_refname_component

2014-06-05 Thread David Turner
Optimize check_refname_component using SSE4.2, where available. git rev-parse HEAD is a good test-case for this, since it does almost nothing except parse refs. For one particular repo with about 60k refs, almost all packed, the timings are: Look up table: 29 ms SSE4.2:25 ms This is abo

[PATCH v3] receive-pack: optionally deny case clone refs

2014-06-05 Thread David Turner
It is possible to have two refs which are the same but for case. This works great on the case-sensitive filesystems, but not so well on case-insensitive filesystems. It is fairly typical to have case-insensitive clients (Macs, say) with a case-sensitive server (GNU/Linux). Should a user attempt t

Re: [PATCH v2 10/11] test-lib: make it possible to override how test code is eval'd

2014-06-05 Thread Richard Hansen
On 2014-06-05 17:11, Junio C Hamano wrote: > Richard Hansen writes: > >> Because test_eval_ is defined while zsh is in sh emulation mode, the >> shell code passed as an argument to test_expect_success would normally >> be evaluated in sh emulation mode. However, with this change, it is >> now po

Re: [PATCH v3] receive-pack: optionally deny case clone refs

2014-06-05 Thread Duy Nguyen
On Fri, Jun 6, 2014 at 7:52 AM, David Turner wrote: > Create the option receive.denycaseclonerefs, which checks pushed > refs to ensure that they are not case clones of an existing > ref. This setting is turned on by default if core.ignorecase is > set, but not otherwise. Just thinking out loud

Re: [PATCH v3] receive-pack: optionally deny case clone refs

2014-06-05 Thread David Turner
On Fri, 2014-06-06 at 08:37 +0700, Duy Nguyen wrote: > On Fri, Jun 6, 2014 at 7:52 AM, David Turner wrote: > > Create the option receive.denycaseclonerefs, which checks pushed > > refs to ensure that they are not case clones of an existing > > ref. This setting is turned on by default if core.ign

Re: Re: [git] [PATCH 2/5] implement submodule config cache for lookup of submodule names

2014-06-05 Thread Heiko Voigt
On Thu, Jun 05, 2014 at 10:46:10AM -0700, W. Trevor King wrote: > On Thu, Jun 05, 2014 at 08:07:50AM +0200, Heiko Voigt wrote: > > +The caller can look up information about submodules by using the > > +`submodule_from_path()` or `submodule_from_name()` functions. > > That's for an already-known su

Re: Re: [RFC PATCH] clone: add clone.recursesubmodules config option

2014-06-05 Thread Heiko Voigt
On Thu, Jun 05, 2014 at 11:18:28AM -0700, Junio C Hamano wrote: > Jens Lehmann writes: > > We had two settings in mind,... > > So what if clone would just do an "git submodule init" for now when > > "submodule.autoinit" is set but "submodule.autoupdate" isn't [?] > > ... and a single "submodule.au

[PATCH 2/4] refs.c: return error instead of dying when locking fails during transaction

2014-06-05 Thread Ronnie Sahlberg
Change lock_ref_sha1_basic to return an error instead of dying when we fail to lock a file during a transaction. Signed-off-by: Ronnie Sahlberg --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index e3a0383..ab0b629 100644 --- a/refs.c +++ b/refs.c @

Re: Re: [RFC PATCH] clone: add clone.recursesubmodules config option

2014-06-05 Thread Heiko Voigt
On Thu, Jun 05, 2014 at 07:48:33PM +1200, Chris Packham wrote: > On 05/06/14 07:42, Heiko Voigt wrote: > > I like this idea of specifying different "views" by giving tags. But > > does it rule out a boolean clone.recursesubmodules? For the simple case > > some people might not want to worry about s