Feature request: detecting mistyped command and isdentical possible matches

2018-08-21 Thread Erik Huizinga
but instead just run any of them. Thank you for Git. Maybe I'll see this feature in the future! Best, Erik

Re: [PATCH] credential: ignore SIGPIPE when writing to credential helpers

2018-03-29 Thread Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco)
Thanks Jeff. I appreciate your time. Quick Q... is there a way to track the patch through to release? If not I can just scan release notes/etc so no worries. Cheers, Erik On 3/29/18, 2:51 PM, "Jeff King" wrote: On Thu, Mar 29, 2018 at 11:00:56AM -0700, Erik E B

[PATCH] credential: ignore SIGPIPE when writing to credential helpers

2018-03-29 Thread Erik E Brady
reasonable for it to take down the parent Git process with SIGPIPE. Even with such a helper, seeing this problem should be rare. Getting SIGPIPE requires the helper racily exiting before we've written the fairly small credential output. Signed-off-by: Erik E Brady --- credential.c | 3

Re: [PATCH] credential: cred helper fast exit can cause SIGPIPE, crash

2018-03-29 Thread Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco)
small credential output. -- As to testing, yes, that was my thought as well. Anyhow, I will try the above unless you see a problem or would like any further change (?). Thanks, Erik On 3/29/18, 4:19 AM, "Jeff King" wrote: On Wed, Mar 28, 2018 at 03:20:51PM -0700, Erik E Brady wr

Re: Apparent bug in credential tool running...

2018-03-28 Thread Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco)
Quick note: I did submit the patch, look for subject line " [PATCH] credential: cred helper fast exit can cause SIGPIPE, crash". Thanks again Jeff, Erik 

[PATCH] credential: cred helper fast exit can cause SIGPIPE, crash

2018-03-28 Thread Erik E Brady
credential.c, run_credential_helper(): now ignores SIGPIPE when writing to credential helper. Avoids problem with race where cred helper exits very quickly and, after, git tries to write to it, generating SIGPIPE and crashing git. To reproduce this the cred helper must not read from STDIN. This

Re: Apparent bug in credential tool running...

2018-03-28 Thread Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco)
or us so I can submit that as-is). Thanks for the quick response! Erik On 3/28/18, 11:46 AM, "Jeff King" wrote: On Wed, Mar 28, 2018 at 06:26:08PM +, Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco) wrote: > The location of the problem

Apparent bug in credential tool running...

2018-03-28 Thread Erik Brady -X (brady - ROBERT HALF INTERNATIONAL INC at Cisco)
folks can likely do a better fix)... and re-run the Perl test script... no longer fails now that we are ignoring SIGPIPE (ran about 20,000+ iterations). Note that the build-in credential manager was not failing... it reads the cred helper store data so it would not have the problem. Let me know if you need any additional information... and thanks for your time and consideration. Erik br...@cisco.com

Re: Fwd: bug: contrib/subtree: Commit message title should be in imperative mood

2017-08-04 Thread Bjørn Erik Pedersen
s. 2. If not "used on the Git project itself" (I assume it will always be used on A Git project), changing the commit title to be in line with the rest would not hurt anyone. Bjørn Erik 2017-08-04 23:21 GMT+02:00 Junio C Hamano : > Bjørn Erik Pedersen writes: > >> I.

Fwd: bug: contrib/subtree: Commit message title should be in imperative mood

2017-08-04 Thread Bjørn Erik Pedersen
I.e. "Squash 'somedir' changes" and not "Squashed ..." See https://github.com/git/git/blob/master/contrib/subtree/git-subtree.sh#L463

Re: git with ssh won't pull submodule

2017-04-29 Thread Erik Haller
Ah. I was able to get it to work with the ssh protocol and a relative path. Thank you for your help. On Fri, Apr 28, 2017 at 8:45 AM, Chris Packham wrote: > Hi Erik, > > On Fri, Apr 28, 2017 at 11:25 AM, Erik Haller wrote: >> Getting the following error for a submodule whe

git with ssh won't pull submodule

2017-04-27 Thread Erik Haller
Getting the following error for a submodule when using git/ssh: $ git clone --recursive ssh://incense:/home/erik/git/nacl.git Cloning into 'nacl'... remote: Counting objects: 32, done. remote: Compressing objects: 100% (25/25), done. remote: Total 32 (delta 5), reused 0 (delta 0)

Re: [ANNOUNCE] Git Merge Contributor Summit topic planning

2017-02-01 Thread Erik van Zijst
ort for this for a while now. I imagine other large code hosts could benefit from this as well and I'd love to gauge the group's interest for this. Could this make sense for Git? Would it have a chance of landing? Our spike implements it as an optional capability during ref advertisement. What are your thoughts on this? Cheers, Erik

Re: git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir

2016-07-08 Thread Erik Johnson
On Fri, Jul 08, 2016 at 09:58:26PM -0700, Jacob Keller wrote: On Fri, Jul 8, 2016 at 7:22 PM, Erik Johnson wrote: On Fri, Jul 08, 2016 at 05:41:17PM -0700, Jacob Keller wrote: It is possible we should update "git branch -d" should perform a worktree prune first, since that would en

Re: git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir

2016-07-08 Thread Erik Johnson
On Fri, Jul 08, 2016 at 05:41:17PM -0700, Jacob Keller wrote: On Thu, Jul 7, 2016 at 5:36 PM, Erik Johnson wrote: I'm not expecting _any_ git branch command to prune worktrees, but a branch _deletion_ shouldn't fail because git thinks the branch is checked out in a worktree that doe

Re: git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir

2016-07-07 Thread Erik Johnson
On Thu, Jul 07, 2016 at 04:39:26PM -0700, Jacob Keller wrote: On Thu, Jul 7, 2016 at 11:44 AM, Erik Johnson wrote: % git branch -D archive-extracted-xz error: Cannot delete branch 'archive-extracted-xz' checked out at '/home/erik/git/salt/archive-extracted-xz' % test -d

git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir

2016-07-07 Thread Erik Johnson
% git branch -D archive-extracted-xz error: Cannot delete branch 'archive-extracted-xz' checked out at '/home/erik/git/salt/archive-extracted-xz' % test -d /home/erik/git/salt/archive-extracted-xz || echo "directory doesn't exist" directory doesn't ex

Re: Git 2.8.1 fails test 32 of t7300-clean.sh, breaks profile build

2016-05-03 Thread erik elfström
*/ Technically we don't have a valid .git file here but we have something that really tries to be. I guess it is debatable what the correct conservative choice is here and if it is the same for all callers. /Erik -- To unsubscribe from this list: send the line "unsubscribe git" i

Re: Timestamp of zero in reflog considered invalid

2016-04-06 Thread Erik Bray
age) which would indicate that strtoul failed, but checking for errno==ERANGE sounds good. +1 on the patch modulo setting errno = 0 first. Thanks, Erik -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo i

Timestamp of zero in reflog considered invalid

2016-04-05 Thread Erik Bray
s an invalid reflog entry. Why should 0 be treated as an invalid timestamp (even if it's unlikely outside of corner cases)? Thanks, Erik -- 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://vger.kernel.org/majordomo-info.html

push failure on domain-connected machine

2015-11-18 Thread Erik Blake
When pushing an existing local repo to a new remote repo, git 2.6.3 misidentifies the user's home directory on a domain-connected Windows machine. My machine is running Win7-64 and I have tried both the 32-bit and 64-bit version of git. For example, the following sequence fails on the last command

Unhelpful shortcut parameters for git bash

2015-11-18 Thread Erik Blake
When creating shortcuts for git bash on Windows machines, the "Target" contains the command "C:\PF\Git\git-bash.exe --cd-to-home" and the "Start In" field contains %HOMEDRIVE%%HOMEPATH%. This is redundant, and makes it harder to modify the shortcut to start bash in the user's directory of choice.

Re: [PATCH] t7300: fix broken && chains

2015-08-31 Thread erik elfström
first version. (Forgot to include the list in my first reply, sorry... And forgot to turn off HTML in the second... sigh, sorry for the spam) /Erik -- 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://vger.kernel.org/majordomo-info.html

Re: [PATCH] t7300: fix broken && chains

2015-08-31 Thread erik elfström
On Mon, Aug 31, 2015 at 8:54 PM, Jeff King wrote: > On Sun, Aug 30, 2015 at 11:18:09AM +0200, Erik Elfström wrote: > > Unfortunately CHAIN_LINT cannot reach inside a nested subshell. I cannot > think of a way to make it do so, and besides, that is also the way to > overri

[PATCH] t7300: fix broken && chains

2015-08-30 Thread Erik Elfström
While we are here, remove some boilerplate by using test_commit. Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 27557d6..86ceb38 100755 --- a/t/t7300-clean.sh +++ b

Re: [msysGit] Re: [PATCH bc/connect-plink] t5601-clone: remove broken and pointless check for plink.exe

2015-08-13 Thread Erik Faye-Lund
On Thu, Aug 13, 2015 at 10:37 AM, Johannes Schindelin wrote: > Hi kusma, > > On 2015-08-12 13:58, Erik Faye-Lund wrote: >> On Wed, Aug 12, 2015 at 1:07 PM, Johannes Schindelin >> wrote: >>> >>> On 2015-08-11 22:51, Johannes Sixt wrote: >>>> Inv

Re: [msysGit] Re: [PATCH bc/connect-plink] t5601-clone: remove broken and pointless check for plink.exe

2015-08-12 Thread Erik Faye-Lund
On Wed, Aug 12, 2015 at 1:07 PM, Johannes Schindelin wrote: > Hi Johannes, > > On 2015-08-11 22:51, Johannes Sixt wrote: >> Invoking plink requires special treatment, and we have support and even >> test cases for the commands 'plink' and 'tortoiseplink'. We also support >> .exe variants for these

Re: [PATCH v8 1/5] setup: add gentle version of read_gitfile

2015-06-26 Thread erik elfström
On Fri, Jun 26, 2015 at 11:03 AM, Jeff King wrote: > I happened to be playing with clang's static analyzer today, and it > noticed that there is a subtle use-after-free here. Doh, sorry about that. Thanks for fixing my bug. /Erik -- To unsubscribe from this list: send the line "

[PATCH v8 5/5] clean: improve performance when removing lots of directories

2015-06-15 Thread Erik Elfström
1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 30 ++ t/t7300-clean.sh | 10 -- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 6dcb72e..df53def 100644

[PATCH v8 0/5] Improving performance of git clean

2015-06-15 Thread Erik Elfström
This is v8 of this series. v7 can be found here: http://thread.gmane.org/gmane.comp.version-control.git/271220 Changes in v8: * change name and type of file size limit variable in read_git_file_gently Erik Elfström (5): setup: add gentle version of read_gitfile setup: sanity check file

[PATCH v8 4/5] p7300: add performance tests for clean

2015-06-15 Thread Erik Elfström
The tests are run in dry-run mode to avoid having to restore the test directories for each timed iteration. Using dry-run is an acceptable compromise since we are mostly interested in the initial computation of what to clean and not so much in the cleaning it self. Signed-off-by: Erik Elfström

[PATCH v8 3/5] t7300: add tests to document behavior of clean and nested git

2015-06-15 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 142 +++ 1 file changed, 142 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..fbfdf2d 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,148

[PATCH v8 1/5] setup: add gentle version of read_gitfile

2015-06-15 Thread Erik Elfström
Helped-by: Jeff King Signed-off-by: Erik Elfström --- cache.h | 11 - setup.c | 84 ++--- 2 files changed, 75 insertions(+), 20 deletions(-) diff --git a/cache.h b/cache.h index 571c98f..25578cb 100644 --- a/cache.h +++ b/cache.h

[PATCH v8 2/5] setup: sanity check file size in read_gitfile_gently

2015-06-15 Thread Erik Elfström
fficiently unreasonable size that should never be exceeded by a genuine .git file. Signed-off-by: Erik Elfström --- cache.h | 1 + setup.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/cache.h b/cache.h index 25578cb..858d9b3 100644 --- a/cache.h +++ b/cache.h @@ -454,6 +454,7 @@ ex

Re: [PATCH v7 2/5] setup: sanity check file size in read_gitfile_gently

2015-06-14 Thread erik elfström
On Sun, Jun 14, 2015 at 5:42 AM, Eric Sunshine wrote: > > This variable name doesn't convey much about its purpose, and > introduces a bit of maintenance burden if the limit is some day > changed. Perhaps "sane_size_limit" or something even more descriptive > (and/or terse) would be better. > Wou

[PATCH v7 5/5] clean: improve performance when removing lots of directories

2015-06-09 Thread Erik Elfström
1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 30 ++ t/t7300-clean.sh | 10 -- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 6dcb72e..df53def 100644

[PATCH v7 0/5] Improving performance of git clean

2015-06-09 Thread Erik Elfström
. Erik Elfström (5): setup: add gentle version of read_gitfile setup: sanity check file size in read_gitfile_gently t7300: add tests to document behavior of clean and nested git p7300: add performance tests for clean clean: improve performance when removing lots of directories builtin

[PATCH v7 3/5] t7300: add tests to document behavior of clean and nested git

2015-06-09 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 142 +++ 1 file changed, 142 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..fbfdf2d 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,148

[PATCH v7 2/5] setup: sanity check file size in read_gitfile_gently

2015-06-09 Thread Erik Elfström
fficiently unreasonable size that should never be exceeded by a genuine .git file. Signed-off-by: Erik Elfström --- cache.h | 1 + setup.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/cache.h b/cache.h index 25578cb..858d9b3 100644 --- a/cache.h +++ b/cache.h @@ -454,6 +454,7 @@ ex

[PATCH v7 4/5] p7300: add performance tests for clean

2015-06-09 Thread Erik Elfström
The tests are run in dry-run mode to avoid having to restore the test directories for each timed iteration. Using dry-run is an acceptable compromise since we are mostly interested in the initial computation of what to clean and not so much in the cleaning it self. Signed-off-by: Erik Elfström

[PATCH v7 1/5] setup: add gentle version of read_gitfile

2015-06-09 Thread Erik Elfström
Helped-by: Jeff King Signed-off-by: Erik Elfström --- cache.h | 11 - setup.c | 84 ++--- 2 files changed, 75 insertions(+), 20 deletions(-) diff --git a/cache.h b/cache.h index 571c98f..25578cb 100644 --- a/cache.h +++ b/cache.h

[PATCH v6 6/7] clean: improve performance when removing lots of directories

2015-05-10 Thread Erik Elfström
1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 31 +++ t/t7300-clean.sh | 10 -- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 98c103f..d739dcf

Re: [PATCH v5 5/5] clean: improve performance when removing lots of directories

2015-04-28 Thread erik elfström
be best to leave the generalization and making it public for future work. /Erik -- 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://vger.kernel.org/majordomo-info.html

Re: [PATCH v5 1/5] setup: add gentle version of read_gitfile

2015-04-28 Thread erik elfström
ce. Overall it seems like a less attractive solution to me but I can be persuaded if there is more support expressed for the strbuf direction. /Erik -- 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://vger.kernel.org/majordomo-info.html

Re: [PATCH v5 4/5] p7300: add performance tests for clean

2015-04-28 Thread erik elfström
On Tue, Apr 28, 2015 at 8:33 AM, Jeff King wrote: > > Do we actually need a large repo here? The real cost is coming from the > directories we create. We could actually start with a totally empty > repository if we wanted (though I don't think the t/perf system handles > that right now). But if th

Re: [PATCH v5 2/5] setup: sanity check file size in read_gitfile_gently

2015-04-28 Thread erik elfström
le the paths in the tree then there seem to be little point in trying to go on (as opposed to when some string in a file is too large for a path) Thoughts? /Erik -- 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://vger.kernel.org/majordomo-info.html

[PATCH v5 5/5] clean: improve performance when removing lots of directories

2015-04-25 Thread Erik Elfström
tracked directory containing 10 sub directories went from 61s to 1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 26 ++ t/t7300-clean.sh | 8 +++- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/buil

[PATCH v5 4/5] p7300: add performance tests for clean

2015-04-25 Thread Erik Elfström
The tests are run in dry-run mode to avoid having to restore the test directories for each timed iteration. Using dry-run is an acceptable compromise since we are mostly interested in the initial computation of what to clean and not so much in the cleaning it self. Signed-off-by: Erik Elfström

[PATCH v5 3/5] t7300: add tests to document behavior of clean and nested git

2015-04-25 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 128 +++ 1 file changed, 128 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..11f3a6d 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,134

[PATCH v5 2/5] setup: sanity check file size in read_gitfile_gently

2015-04-25 Thread Erik Elfström
fficiently unreasonable size that should never be exceeded by a genuine .git file. Signed-off-by: Erik Elfström --- cache.h | 1 + setup.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/cache.h b/cache.h index 868e4d3..c9f1f8e 100644 --- a/cache.h +++ b/cache.h @@ -439,6 +439,7 @@ ex

[PATCH v5 0/5] Improving performance of git clean

2015-04-25 Thread Erik Elfström
Changes in v5: * Added defines for read_gitfile_gently error codes. This was a silly mistake, sorry about that. Erik Elfström (5): setup: add gentle version of read_gitfile setup: sanity check file size in read_gitfile_gently t7300: add tests to document behavior of clean and nested git

[PATCH v5 1/5] setup: add gentle version of read_gitfile

2015-04-25 Thread Erik Elfström
Helped-by: Jeff King Signed-off-by: Erik Elfström --- cache.h | 11 - setup.c | 82 +++-- 2 files changed, 75 insertions(+), 18 deletions(-) diff --git a/cache.h b/cache.h index 3d3244b..868e4d3 100644 --- a/cache.h +++ b/cache.h

Re: [PATCH v4 2/5] setup: sanity check file size in read_gitfile_gently

2015-04-25 Thread Erik Elfström
On Sat, Apr 25, 2015 at 6:47 PM, Junio C Hamano wrote: > I do not think it is wrong per-se, but the changes in this patch > shows why hardcoded values assigned to error_code without #define is > not a good idea, as these values are now exposed to the callers of > the new function. After we gain a

[PATCH v4 3/5] t7300: add tests to document behavior of clean and nested git

2015-04-25 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 128 +++ 1 file changed, 128 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..11f3a6d 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,134

[PATCH v4 1/5] setup: add gentle version of read_gitfile

2015-04-25 Thread Erik Elfström
Helped-by: Jeff King Signed-off-by: Erik Elfström --- cache.h | 3 ++- setup.c | 82 +++-- 2 files changed, 67 insertions(+), 18 deletions(-) diff --git a/cache.h b/cache.h index 3d3244b..6e29068 100644 --- a/cache.h +++ b/cache.h

[PATCH v4 5/5] clean: improve performance when removing lots of directories

2015-04-25 Thread Erik Elfström
tracked directory containing 10 sub directories went from 61s to 1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 26 ++ t/t7300-clean.sh | 8 +++- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/buil

[PATCH v4 4/5] p7300: add performance tests for clean

2015-04-25 Thread Erik Elfström
The tests are run in dry-run mode to avoid having to restore the test directories for each timed iteration. Using dry-run is an acceptable compromise since we are mostly interested in the initial computation of what to clean and not so much in the cleaning it self. Signed-off-by: Erik Elfström

[PATCH v4 2/5] setup: sanity check file size in read_gitfile_gently

2015-04-25 Thread Erik Elfström
fficiently unreasonable size that should never be exceeded by a genuine .git file. Signed-off-by: Erik Elfström --- I'm not sure about this one but it felt like the safe thing to do. This patch can be dropped if it is not desired. I considered testing it using "mkdir foo &&am

[PATCH v4 0/5] Improving performance of git clean

2015-04-25 Thread Erik Elfström
message in [5/5] to more clearly motivate remaining behavioral changes of git clean. Thanks to Junio C Hamano and Jeff King for comments and help on v3. Erik Elfström (5): setup: add gentle version of read_gitfile setup: sanity check file size in read_gitfile_gently t7300: add tests to

Re: [PATCH/RFC v3 0/4] Improving performance of git clean

2015-04-22 Thread erik elfström
On Wed, Apr 22, 2015 at 9:46 PM, Jeff King wrote: > On Wed, Apr 22, 2015 at 09:30:20PM +0200, erik elfström wrote: >> >> Yes, that is the problem. A dry run will spot this particular performance >> issue but maybe we lose some value as a general performance test if >>

Re: [PATCH/RFC v3 0/4] Improving performance of git clean

2015-04-22 Thread erik elfström
eneral performance test if we only do "half" the clean? Admittedly we clearly lose some value in the current state as well due to the copying taking more time than the cleaning. I could go either way here. /Erik -- To unsubscribe from this list: send the line "unsubscribe git" in the b

Re: [PATCH/RFC v3 0/4] Improving performance of git clean

2015-04-21 Thread erik elfström
tests, either directly in this series or as a follow up if that is preferred. /Erik On Tue, Apr 21, 2015 at 12:14 AM, Thomas Gummerer wrote: > On 04/18, Erik Elfström wrote: >> * Still have issues in the performance tests, see comments >> from Thomas Gummerer on v2 > &g

Re: [PATCH/RFC v3 0/4] Improving performance of git clean

2015-04-21 Thread erik elfström
On Sun, Apr 19, 2015 at 3:14 AM, Junio C Hamano wrote: > Erik Elfström writes: > >> Known Problems: >> * Unsure about the setup.c:read_gitfile refactor, feels a bit >> messy? > > The interface indeed feels somewhat messy. I suspect that a better

[PATCH/RFC v3 4/4] clean: improve performance when removing lots of directories

2015-04-18 Thread Erik Elfström
00 sub directories went from 61s to 1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 25 + t/t7300-clean.sh | 8 +++- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c

[PATCH/RFC v3 2/4] t7300: add tests to document behavior of clean and nested git

2015-04-18 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 127 +++ 1 file changed, 127 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..4b9a72a 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,133

[PATCH/RFC v3 3/4] p7300: add performance tests for clean

2015-04-18 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/perf/p7300-clean.sh | 37 + 1 file changed, 37 insertions(+) create mode 100755 t/perf/p7300-clean.sh diff --git a/t/perf/p7300-clean.sh b/t/perf/p7300-clean.sh new file mode 100755 index 000..af50d5d --- /dev/null

[PATCH/RFC v3 0/4] Improving performance of git clean

2015-04-18 Thread Erik Elfström
we won't clean either. How serious is this? Is there an easy fix (preferebly to clean all bare repositories)? * Still have issues in the performance tests, see comments from Thomas Gummerer on v2 Thanks to Junio C Hamano and Jeff King for spotting fundamental problems in v2 and suggesti

[PATCH/RFC v3 1/4] setup: add gentle version of read_gitfile

2015-04-18 Thread Erik Elfström
Helped-by: Jeff King Signed-off-by: Erik Elfström --- If this is going to be used for speculative probing should there be a sanity check before: buf = xmalloc(st.st_size + 1); len = read_in_full(fd, buf, st.st_size); Something like: if (st.st_size > PATH_MA

Re: [PATCH v2 3/3] clean: improve performance when removing lots of directories

2015-04-17 Thread erik elfström
On Wed, Apr 15, 2015 at 7:56 PM, Junio C Hamano wrote: > Erik Elfström writes: > >> Before this change, clean used resolve_gitlink_ref to check for the >> presence of nested git repositories. This had the drawback of creating >> a ref_cache entry for every directory th

Re: [msysGit] [PATCH] compat/mingw: stubs for getpgid() and tcgetpgrp()

2015-04-15 Thread Erik Faye-Lund
On Wed, Apr 15, 2015 at 8:29 PM, Johannes Sixt wrote: > Windows does not have process groups. It is, therefore, the simplest > to pretend that each process is in its own process group. Windows does have some concept of process groups, but probably not quite what you want: https://msdn.microsoft.

Re: [PATCH v2 2/3] p7300: add performance tests for clean

2015-04-12 Thread erik elfström
On Sat, Apr 11, 2015 at 7:59 PM, Thomas Gummerer wrote: > On 04/11, Erik Elfström wrote: >> Signed-off-by: Erik Elfström >> --- >> t/perf/p7300-clean.sh | 37 + >> 1 file changed, 37 insertions(+) >> create mode 100755 t/per

[PATCH v2 3/3] clean: improve performance when removing lots of directories

2015-04-11 Thread Erik Elfström
1.7s after this change. Helped-by: Jeff King Signed-off-by: Erik Elfström --- builtin/clean.c | 24 t/t7300-clean.sh | 4 ++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 98c103f..b679913 100644 --- a/builtin/cl

[PATCH v2 2/3] p7300: add performance tests for clean

2015-04-11 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/perf/p7300-clean.sh | 37 + 1 file changed, 37 insertions(+) create mode 100755 t/perf/p7300-clean.sh diff --git a/t/perf/p7300-clean.sh b/t/perf/p7300-clean.sh new file mode 100755 index 000..af50d5d --- /dev/null

[PATCH v2 1/3] t7300: add tests to document behavior of clean and nested git

2015-04-11 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/t7300-clean.sh | 72 1 file changed, 72 insertions(+) diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 99be5d9..58e6b4a 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -455,6 +455,78

[PATCH v2 0/3] Improving performance of git clean

2015-04-11 Thread Erik Elfström
ray index * use size_t instead of int for strbuf->len fixes held back for cleanup patches: * fixed existing broken && chains * added assert in existing code to guard gainst negative array index Thanks to Eric Sunshine and Torsten Bögershausen for the very helpful review! Erik Elfströ

[PATCH v2 0/3] Improving performance of git clean

2015-04-11 Thread Erik Elfström
ray index * use size_t instead of int for strbuf->len fixes held back for cleanup patches: * fixed existing broken && chains * added assert in existing code to guard against negative array index Thanks to Eric Sunshine and Torsten Bögershausen for the very helpful review! Erik Elf

Re: [PATCH] systemd socket activation support

2015-04-08 Thread Erik Faye-Lund
On Thu, Apr 2, 2015 at 8:09 AM, Shawn Landden wrote: > From: Shawn Landden > > v1.1: actually test... > > Signed-off-by: Shawn Landden > --- > daemon.c | 35 +++--- > git-daemon.service | 7 +++ > git-daemon.socket | 9 > sd-daemon.c| 132 >

Re: [PATCH 3/3] clean: improve performance when removing lots of directories

2015-04-07 Thread erik elfström
On Tue, Apr 7, 2015 at 12:10 AM, Eric Sunshine wrote: > On Mon, Apr 6, 2015 at 7:48 AM, Erik Elfström wrote: >> Before this change, clean used resolve_gitlink_ref to check for the >> presence of nested git repositories. This had the drawback of creating >> a ref_cache entr

Re: [PATCH 2/3] p7300: added performance tests for clean

2015-04-07 Thread erik elfström
p" option to be called be before each iteration. On Tue, Apr 7, 2015 at 12:09 AM, Eric Sunshine wrote: > On Mon, Apr 6, 2015 at 4:40 PM, Torsten Bögershausen wrote: >> On 2015-04-06 13.48, Erik Elfström wrote: >>> Signed-off-by: Erik Elfström >>> --- >&g

Re: [PATCH 1/3] t7300: add tests to document behavior of clean and nested git

2015-04-07 Thread erik elfström
will fix! On Tue, Apr 7, 2015 at 12:06 AM, Eric Sunshine wrote: > On Mon, Apr 6, 2015 at 7:48 AM, Erik Elfström wrote: >> Signed-off-by: Erik Elfström >> --- >> diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh >> index 99be5d9..cfdf6d4 100755 >> --- a/t/t7300-c

[PATCH 1/3] t7300: add tests to document behavior of clean and nested git

2015-04-06 Thread Erik Elfström
Signed-off-by: Erik Elfström --- These tests were added so that I could understand the corner case behaviors of clean and nested repositories and document the changes in behavior that this series will cause. The ones marked as expect failure will be changed to expect success later in the series

[PATCH 2/3] p7300: added performance tests for clean

2015-04-06 Thread Erik Elfström
Signed-off-by: Erik Elfström --- t/perf/p7300-clean.sh | 37 + 1 file changed, 37 insertions(+) create mode 100755 t/perf/p7300-clean.sh diff --git a/t/perf/p7300-clean.sh b/t/perf/p7300-clean.sh new file mode 100755 index 000..3f56fb2 --- /dev/null

[PATCH 3/3] clean: improve performance when removing lots of directories

2015-04-06 Thread Erik Elfström
1.7s after this change. Signed-off-by: Erik Elfström Helped-by: Jeff King --- builtin/clean.c | 23 +++ t/t7300-clean.sh | 4 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 98c103f..e951bd9 100644 --- a/builtin/cl

[PATCH 0/3] Improving performance of git clean

2015-04-06 Thread Erik Elfström
when reviewing. Jeff King also expressed concerns that we may have similar performance issues in other commands and that it could be good to unify these "is this a repo?"-checks. This series only attempts to solve the git-clean case. Erik Elfström (3): t7300: add tests to document behavi

Re: git clean performance issues

2015-04-04 Thread erik elfström
That looks like the same issue. The "use is_git_directory" approach sounds good to me, is that the direction you would prefer? I can try to cobble something together although I must warn you I have zero previous experience with this code base so a few iterations will probably be needed.

git clean performance issues

2015-04-04 Thread erik elfström
le to bypass it, maybe by calling resolve_gitlink_ref_recursive directly or by using some other way of checking for the presence of a git repo in clean.c:remove_dirs? /Erik -- 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://vger.kernel.org/majordomo-info.html

Re: [msysGit] Re: Windows Bluescreen

2015-02-12 Thread Erik Friesen
The nature of a bluescreen doesn't make debugging and reproduction real easy. If it helps, I can get the dumps from those crashes. To move on, I moved back to local http pushes. On Thu, Feb 12, 2015 at 7:42 AM, Thomas Braun wrote: > Am Donnerstag, den 12.02.2015, 07:21 -0500 schrieb Erik Frie

Re: Windows Bluescreen

2015-02-12 Thread Erik Friesen
r, I'd say it will have issues. > > At minimum, this should be on the list for others to view. I have run > across problems from others, but I don't think they realized it could > be an ssh problem. > > On Thu, Feb 12, 2015 at 4:33 AM, Chris Packham > wrote: >&g

Re: Windows Bluescreen

2015-02-12 Thread Erik Friesen
Thu, Feb 12, 2015 at 4:33 AM, Chris Packham wrote: > On Thu, Feb 12, 2015 at 1:33 AM, Erik Friesen wrote: >> Pushing over http and https are unaffected.. My linux nas died, so on >> rebuild I tried to do the ssh thing, and realized quite soon that >> things weren't right.

Re: Windows Bluescreen

2015-02-11 Thread Erik Friesen
I hunted around for the bugreport email on mysgit but couldn't seem to find it. It seems in the foggy recesses I remember reading about an ssh issue with windows, but can't find it now. On Wed, Feb 11, 2015 at 3:56 AM, Chris Packham wrote: > Hi Erik, > > On Tue, Feb 10, 2015

Gmail Message rejection

2015-02-09 Thread erik
Can I submit this as a bug report, that sending something from the gmail client results in this response? Delivery to the following recipient failed permanently: git@vger.kernel.org Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the

Windows Bluescreen

2015-02-09 Thread erik
I find that preview 1.8 is bluescreening on about 1 of 3 ssh pushes. 1.9 preview 12-17-2014 doesn't even bluescreen, the windows gui locks until reset. Sample command: git push omv master\r config. = [core] repositoryformatversion = 0 filemode = false bare = false

Re: t5539 broken under Mac OS X

2015-01-27 Thread Erik Faye-Lund
On Tue, Jan 27, 2015 at 3:51 AM, Junio C Hamano wrote: > Erik Faye-Lund writes: > >> On Fri, Jan 16, 2015 at 1:04 AM, Junio C Hamano wrote: >>> Jeff King writes: >>> >>>> Exactly. I am happy to submit a patch, but I cannot think of any >>&

Re: t5539 broken under Mac OS X

2015-01-26 Thread Erik Faye-Lund
On Fri, Jan 16, 2015 at 1:04 AM, Junio C Hamano wrote: > Jeff King writes: > >> Exactly. I am happy to submit a patch, but I cannot think of any >> mechanisms besides: >> >> 1. Calling `id`, which I suspect is very not portable. >> >> 2. Writing a C program to check getuid(). That's portable

Re: [PATCH] win32: syslog: prevent potential realloc memory leak

2015-01-25 Thread Erik Faye-Lund
Sorry for very late reply. I had a bug in my mail rules that caused this email to skip my inbox. That should be fixed now. On Mon, Dec 15, 2014 at 7:11 PM, Junio C Hamano wrote: > Arjun Sreedharan writes: > >> use a temporary variable to free the memory in case >> realloc() fails. >> >> Signed-o

Re: [PATCH] wincred: fix get credential if username has @

2015-01-25 Thread Erik Faye-Lund
return match_part_with_last(ptarget, want, delim, 1); >> +} >> + >> static int match_cred(const CREDENTIALW *cred) >> { >> LPCWSTR target = cred->TargetName; >> @@ -146,7 +165,7 @@ static int match_cred(const CREDENTIALW *cred) >> >> return match_p

Re: [msysGit] [PATCH 01/14] MINGW: compat/mingw.h: do not attempt to redefine lseek on mingw-w64

2014-10-08 Thread Erik Faye-Lund
On Wed, Oct 8, 2014 at 8:00 PM, Marat Radchenko wrote: > Unlike MinGW, MinGW-W64 has lseek already properly defined in io.h. > > Signed-off-by: Marat Radchenko > Acked-by: Eric Faye-Lund I spell my name with a K, "Erik Faye-Lund". -- To unsubscribe from this list: send

Re: [PATCH v2 2/2] wincred: improve compatibility with windows versions

2014-09-10 Thread Erik Faye-Lund
On Thu, Jan 10, 2013 at 1:10 PM, Karsten Blees wrote: > static int match_cred(const CREDENTIALW *cred) > { > - return (!wusername || !wcscmp(wusername, cred->UserName)) && > - match_attr(cred, L"git_protocol", protocol) && > - match_attr(cred, L"git_host", host) && > -

Re: Location of git config on Windows

2014-08-18 Thread Erik Faye-Lund
On Mon, Aug 18, 2014 at 7:05 PM, Daniel Corbe wrote: > Erik Faye-Lund writes: > >> On Mon, Aug 18, 2014 at 5:47 PM, Erik Faye-Lund wrote: >>> On Mon, Aug 18, 2014 at 5:40 PM, Daniel Corbe wrote: >>>> >>>> Erik Faye-Lund writes: >>>

Re: Location of git config on Windows

2014-08-18 Thread Erik Faye-Lund
On Mon, Aug 18, 2014 at 5:47 PM, Erik Faye-Lund wrote: > On Mon, Aug 18, 2014 at 5:40 PM, Daniel Corbe wrote: >> >> Erik Faye-Lund writes: >> >>> Or you could just restart your shell when you disconnect... >> >> Well I'm not that daft. I tr

  1   2   3   4   5   >