Re: support git+mosh for unreliable connections

2015-04-15 Thread Dennis Kaarsemaker
On wo, 2015-04-15 at 18:37 +0530, Pirate Praveen wrote: Hi, When working with big projects over a slow, unreliable connection, currently there is no way to resume a clone or pull when the connection breaks. mosh is a better replacement for ssh over unreliable connections. supporting

Re: support git+mosh for unreliable connections

2015-04-15 Thread Pirate Praveen
On Wednesday 15 April 2015 07:22 PM, Michael J Gruber wrote: What would that require git to do, beyond taking whatever you tell it (using GIT_SSH or _GIT_SSH_COMMAND) to use as a drop in replacement for ssh? Michael May be support git+mosh as a protocol, since it is not a drop in

support git+mosh for unreliable connections

2015-04-15 Thread Pirate Praveen
Hi, When working with big projects over a slow, unreliable connection, currently there is no way to resume a clone or pull when the connection breaks. mosh is a better replacement for ssh over unreliable connections. supporting git+mosh protocol will go a long way in supporting people who work

Re: support git+mosh for unreliable connections

2015-04-15 Thread Michael J Gruber
Pirate Praveen venit, vidit, dixit 15.04.2015 15:07: Hi, When working with big projects over a slow, unreliable connection, currently there is no way to resume a clone or pull when the connection breaks. mosh is a better replacement for ssh over unreliable connections. supporting git+mosh

Re: support git+mosh for unreliable connections

2015-04-15 Thread Johannes Schindelin
Hi Praveen, On 2015-04-15 16:18, Pirate Praveen wrote: On Wednesday 15 April 2015 07:22 PM, Michael J Gruber wrote: What would that require git to do, beyond taking whatever you tell it (using GIT_SSH or _GIT_SSH_COMMAND) to use as a drop in replacement for ssh? May be support git+mosh as a

Re: support git+mosh for unreliable connections

2015-04-15 Thread Trevor Saunders
On Wed, Apr 15, 2015 at 04:41:42PM +0200, Johannes Schindelin wrote: Hi Praveen, On 2015-04-15 16:18, Pirate Praveen wrote: On Wednesday 15 April 2015 07:22 PM, Michael J Gruber wrote: What would that require git to do, beyond taking whatever you tell it (using GIT_SSH or

Re: support git+mosh for unreliable connections

2015-04-15 Thread Johannes Schindelin
Hi Praveen A, On 2015-04-15 15:07, Pirate Praveen wrote: When working with big projects over a slow, unreliable connection, currently there is no way to resume a clone or pull when the connection breaks. mosh is a better replacement for ssh over unreliable connections. supporting

Re: support git+mosh for unreliable connections

2015-04-15 Thread Pirate Praveen
On Wednesday 15 April 2015 07:52 PM, Johannes Schindelin wrote: From https://github.com/keithw/mosh: Mosh does not support X forwarding or the non-interactive uses of SSH, including port forwarding. In particular it does not support [...] the non-interactive uses of SSH, which the

Re: Odd broken --date=now behavior in current git

2015-04-15 Thread Junio C Hamano
Eric Sunshine sunsh...@sunshineco.com writes: Later parse_date_basic() computes the offset from GMT by comparing the values returned by tm_to_time_t() and mktime(). The existing 'tm' is passed to mktime() with the tm_isdst field already set to 0 by gmtime_r(), and mktime() respects that as a

Re: PATH modifications for git-hook processes

2015-04-15 Thread Matthew Rothenberg
Hmm, this all makes sense as to why it's happening, thank you. In my case the ` /usr/local/Cellar/git/2.3.5/libexec/git-core` (git --exec-path) does give all the proper binaries and sub-binaries. It shows up twice because the GIT_EXEC_PATH environment variable is used too (which is the same in my

[PATCH v8 0/4] cat-file: teach cat-file a '--literally' option

2015-04-15 Thread karthik nayak
Version 7 can be found here : http://thread.gmane.org/gmane.comp.version-control.git/266761/match=patch+v7+0+4 Changes In this version : sha1_file.c * sha1_object_info_extended() can now accept object_info *oi with oi-typename without needing a oi-typep. * Changes in

[PATCH 2/2] parse_date_basic(): let the system handle DST conversion

2015-04-15 Thread Junio C Hamano
The function parses the input to compute the broken-down time in struct tm, and the GMT timezone offset. If the timezone offset does not exist in the input, the broken-down time is turned into the number of seconds since epoch both in the current timezone and in GMT and the offset is computed as

Re: Odd broken --date=now behavior in current git

2015-04-15 Thread Junio C Hamano
Linus Torvalds torva...@linux-foundation.org writes: On Wed, Apr 15, 2015 at 12:22 AM, Eric Sunshine sunsh...@sunshineco.com wrote: The fix seems to be simply: Yup, that seems to do it for me. I'm not sure how we get to match_digit() with the time string now, though. The --date=when

Re: Git + SFC Status Update

2015-04-15 Thread Dave Borowitz
On Tue, Apr 14, 2015 at 4:54 PM, Jeff King p...@peff.net wrote: On Tue, Apr 14, 2015 at 12:30:23PM -0700, Junio C Hamano wrote: If I recall correctly, Scott said onstage that some/all of the conference proceeds would be going directly into this fund. So this might need to be revised upward

Re: Odd broken --date=now behavior in current git

2015-04-15 Thread Linus Torvalds
On Wed, Apr 15, 2015 at 12:22 AM, Eric Sunshine sunsh...@sunshineco.com wrote: The fix seems to be simply: Yup, that seems to do it for me. I'm not sure how we get to match_digit() with the time string now, though. So your patch fixes things for me, but I think: - we should move the

[PATCH v8 1/4] sha1_file.c: support reading from a loose object of unknown type

2015-04-15 Thread Karthik Nayak
Update sha1_loose_object_info() to optionally allow it to read from a loose object file of unknown/bogus type; as the function usually returns the type of the object it read in the form of enum for known types, add an optional typename field to receive the name of the type in textual form and a

[PATCH v8 2/4] cat-file: teach cat-file a '--literally' option

2015-04-15 Thread Karthik Nayak
Currently 'git cat-file' throws an error while trying to print the type or size of a broken/corrupt object. This is because these objects are usually of unknown types. Teach git cat-file a '--literally' option where it prints the type or size of a broken/corrupt object without throwing an error.

[PATCH 3/3] t0027: Add repoMIX and LF_nul

2015-04-15 Thread Torsten Bögershausen
new safer autocrlf handling: Check if eols are converted at commit, which have CR (or CLLF) in the repo (technically speaking in the index) Add a test-file repoMIX with mixed line-endings. Check the warnings when converting LF-CRLF or CRLF-LF checkout_files(): Checking out CRLF_nul and

[PATCH 1/2] parse_date_basic(): return early when given a bogus timestamp

2015-04-15 Thread Junio C Hamano
When the input does not have GMT timezone offset, the code computes it by computing the local and GMT time for the given timestamp. But there is no point doing so if the given timestamp is known to be a bogus one. Signed-off-by: Junio C Hamano gits...@pobox.com --- * A simple preliminary

[PATCH v8 4/4] t1006: add tests for git cat-file --literally

2015-04-15 Thread Karthik Nayak
Signed-off-by: Karthik Nayak karthik@gmail.com --- t/t1006-cat-file.sh | 29 + 1 file changed, 29 insertions(+) diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh index ab36b1e..61fab78 100755 --- a/t/t1006-cat-file.sh +++ b/t/t1006-cat-file.sh @@ -47,6 +47,18

[PATCH v8 3/4] cat-file: add documentation for '--literally' option.

2015-04-15 Thread Karthik Nayak
Signed-off-by: Karthik Nayak karthik@gmail.com --- Documentation/git-cat-file.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index f6a16f4..226a9c4 100644 --- a/Documentation/git-cat-file.txt +++

[PATCH 1/3] t0027: Cleanup: rename functions, avoid TABs

2015-04-15 Thread Torsten Bögershausen
Make more clear what the tests are doing: commit_check_warn(): Commit files and checks for conversion warnings. Old name: create_file_in_repo() checkout_files(): Checkout files from the repo and check if they have the appropriate line endings in the work space. Old name:

[PATCH 2/3] t0027: Adapt check_warning() to MINGW

2015-04-15 Thread Torsten Bögershausen
When running under MINGW, the native line ending is CRLF and not LF. Adjust the check of the warnings with macros: WLC: LF become CRLF on non-MINGW WCL: CRLF become LF on non-MINGW WMIX: Mixed line endings: either CRLF-LF or LF-CRLF Improve the information given by check_warning(): Use

Re: Git + SFC Status Update

2015-04-15 Thread Junio C Hamano
Jeff King p...@peff.net writes: On Tue, Apr 14, 2015 at 12:30:23PM -0700, Junio C Hamano wrote: If I recall correctly, Scott said onstage that some/all of the conference proceeds would be going directly into this fund. So this might need to be revised upward by 50-100% sometime soon :)

[PATCH] gitk: Allow to quickly go to a specific commit

2015-04-15 Thread Ismael Luceno
Binds g to focus the sha1 entry box. Signed-off-by: Ismael Luceno ism...@iodev.co.uk --- gitk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitk b/gitk index 9a2daf3..0e9d884 100755 --- a/gitk +++ b/gitk @@ -2568,6 +2568,7 @@ proc makewindow {} { bindkey b prevfile bindkey d

Re: [PATCH 2/2] parse_date_basic(): let the system handle DST conversion

2015-04-15 Thread Eric Sunshine
On Wed, Apr 15, 2015 at 12:24 PM, Junio C Hamano gits...@pobox.com wrote: The function parses the input to compute the broken-down time in struct tm, and the GMT timezone offset. If the timezone offset does not exist in the input, the broken-down time is turned into the number of seconds

Re: support git+mosh for unreliable connections

2015-04-15 Thread Johannes Schindelin
Hi Trevor, On 2015-04-15 17:33, Trevor Saunders wrote: On Wed, Apr 15, 2015 at 04:41:42PM +0200, Johannes Schindelin wrote: On 2015-04-15 16:18, Pirate Praveen wrote: On Wednesday 15 April 2015 07:22 PM, Michael J Gruber wrote: What would that require git to do, beyond taking whatever you

Re: [PATCH 3/3] refs.c: remove lock_fd from struct ref_lock

2015-04-15 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: This whole series LGTM; however, I suggest that this patch be split up. See below. Signed-off-by: Stefan Beller sbel...@google.com Signed-off-by: Junio C Hamano gits...@pobox.com --- refs.c | 16 ++-- 1 file changed, 6

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

2015-04-15 Thread Johannes Sixt
Windows does not have process groups. It is, therefore, the simplest to pretend that each process is in its own process group. While here, move the getppid() stub from its old location (between two sync related functions) next to the two new functions. Signed-off-by: Johannes Sixt j...@kdbg.org

Re: [PATCH 3/3] t0027: Add repoMIX and LF_nul

2015-04-15 Thread Johannes Schindelin
Hi Torsten, On 2015-04-15 19:01, Torsten Bögershausen wrote: t/t0027-auto-crlf.sh | 155 --- I fear that we duplicated work here, due to me working on Git for Windows 2.x and you sending mails to the non-Windows mailing list. For what it is

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

2015-04-15 Thread Junio C Hamano
Erik Elfström erik.elfst...@gmail.com 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 that should potentially be cleaned. The linear search through the

Re: Feature Request: provide cmdline args to git hooks

2015-04-15 Thread Junio C Hamano
Chris O'Kelly ch...@mapcreative.com.au writes: To reiterate and clarify I'm not saying the undesirable behavior is a built in part of git, just a feature of our hosting platform's Git deployment mechanisms, although if what you mean is that the post-receive hook on the receiving end shouldn't

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

2015-04-15 Thread Junio C Hamano
Johannes Sixt j...@kdbg.org writes: Windows does not have process groups. It is, therefore, the simplest to pretend that each process is in its own process group. While here, move the getppid() stub from its old location (between two sync related functions) next to the two new functions.

Re: What's cooking in git.git (Apr 2015, #02; Tue, 14)

2015-04-15 Thread Junio C Hamano
Torsten Bögershausen tbo...@web.de writes: On 2015-04-14 23.49, Junio C Hamano wrote: * tg/perf-lib-test-perf-cleanup (2013-09-19) 2 commits - perf-lib: add test_perf_cleanup target - perf-lib: split starting the test from the execution Add test_perf_cleanup shell function to the perf

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

2015-04-15 Thread Johannes Sixt
Am 15.04.2015 um 20:48 schrieb Junio C Hamano: The patch should do for now, but I suspect that it may give us a better abstraction to make the is_foreground_fd(int fd) or even is_foreground(void) the public API that would be implemented as int we_are_in_the_foreground(void) {

Re: support git+mosh for unreliable connections

2015-04-15 Thread Ilari Liusvaara
On Wed, Apr 15, 2015 at 08:13:51PM +0530, Pirate Praveen wrote: Q: Are the mosh principles relevant to other network applications? We think so. The design principles that Mosh stands for are conservative: warning the user if the state being displayed is out of date, serializing and

Re: [PATCH v8 2/4] cat-file: teach cat-file a '--literally' option

2015-04-15 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Karthik Nayak karthik@gmail.com writes: ... -if (argc != 3 argc != 2) +if (argc 2 || argc 4) usage_with_options(cat_file_usage, options); Hmm, why this change? By allowing 4 args blindly like this, you will let

Re: [PATCH v8 2/4] cat-file: teach cat-file a '--literally' option

2015-04-15 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: case 's': - type = sha1_object_info(sha1, size); - if (type 0) { - printf(%lu\n, size); - return 0; - } - break; + oi.sizep = size; +

Re: [PATCH v8 1/4] sha1_file.c: support reading from a loose object of unknown type

2015-04-15 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: Update sha1_loose_object_info() to optionally allow it to read from a loose object file of unknown/bogus type; as the function usually returns the type of the object it read in the form of enum for known types, add an optional typename field to

Re: support git+mosh for unreliable connections

2015-04-15 Thread Trevor Saunders
On Wed, Apr 15, 2015 at 07:46:15PM +0200, Johannes Schindelin wrote: Hi Trevor, On 2015-04-15 17:33, Trevor Saunders wrote: On Wed, Apr 15, 2015 at 04:41:42PM +0200, Johannes Schindelin wrote: On 2015-04-15 16:18, Pirate Praveen wrote: On Wednesday 15 April 2015 07:22 PM, Michael J

Re: support git+mosh for unreliable connections

2015-04-15 Thread Dennis Kaarsemaker
On wo, 2015-04-15 at 19:46 +0200, Johannes Schindelin wrote: On 2015-04-15 17:33, Trevor Saunders wrote: but it certainly does support ssh host command and then doing IO. Yes, in interactive sessions. mosh synchronizes terminal state, it doesn't allow random I/O between client and server.

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 j...@kdbg.org 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:

Re: [PATCH 3/3] t0027: Add repoMIX and LF_nul

2015-04-15 Thread Torsten Bögershausen
On 2015-04-15 19.36, Johannes Schindelin wrote: Hi Torsten, On 2015-04-15 19:01, Torsten Bögershausen wrote: t/t0027-auto-crlf.sh | 155 --- I fear that we duplicated work here, due to me working on Git for Windows 2.x and you sending

Re: [PATCH v8 1/4] sha1_file.c: support reading from a loose object of unknown type

2015-04-15 Thread Jeff King
On Wed, Apr 15, 2015 at 01:21:15PM -0700, Junio C Hamano wrote: - type[i++] = c; - if (i = sizeof(type)) - return -1; + strbuf_addch(typename, c); } - type[i] = 0; This _might_ have some performance impact in that strbuf_addch()

Re: [PATCH] fmt-merge-msg: plug small leak of commit buffer

2015-04-15 Thread Jeff King
On Wed, Apr 15, 2015 at 02:30:17PM -0700, Junio C Hamano wrote: I spoke too soon. There are two error-exit paths in this function. -- 8 -- A broken or badly formatted commit might not record author or committer lines or we may not find a valid name on them. The function record_person()

Re: [PATCH] fmt-merge-msg: plug small leak of commit buffer

2015-04-15 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: A broken or badly formatted commit might not record author or committer lines; the function record_person() returned after calling get_commit_buffer() without calling unuse_commit_buffer() on the memory, potentially leaking it. Signed-off-by: Junio C

Re: [PATCH v3 3/5] Documentation: add git-log --merges= option and log.merges config. var

2015-04-15 Thread Koosha Khajehmoogahi
On 04/14/2015 08:42 AM, Eric Sunshine wrote: On Mon, Apr 13, 2015 at 11:29 AM, Koosha Khajehmoogahi koo...@posteo.de wrote: From: Junio C Hamano gits...@pobox.com [kk: added documentation in git-log.txt] Signed-off-by: Koosha Khajehmoogahi koo...@posteo.de --- diff --git

RE: [ANNOUNCE] Git v2.4.0-rc2

2015-04-15 Thread Randall S. Becker
On April 15, 2015 10:22 PM Jeff King wrote: Sent: April 15, 2015 10:22 PM To: Bryan Turner Cc: Junio C Hamano; Git Users Subject: Re: [ANNOUNCE] Git v2.4.0-rc2 [side note: please trim your quoted material when doing inline quoting] On Thu, Apr 16, 2015 at 12:05:57PM +1000, Bryan Turner

Re: [PATCH v3 3/5] Documentation: add git-log --merges= option and log.merges config. var

2015-04-15 Thread Eric Sunshine
On Wed, Apr 15, 2015 at 6:27 PM, Koosha Khajehmoogahi koo...@posteo.de wrote: On 04/14/2015 08:42 AM, Eric Sunshine wrote: On Mon, Apr 13, 2015 at 11:29 AM, Koosha Khajehmoogahi koo...@posteo.de wrote: From: Junio C Hamano gits...@pobox.com [kk: added documentation in git-log.txt]

Re: [ANNOUNCE] Git v2.4.0-rc2

2015-04-15 Thread Junio C Hamano
On Wed, Apr 15, 2015 at 7:22 PM, Jeff King p...@peff.net wrote: In the meantime, unless somebody is planning to jump on this topic immediately (I am not), I think we can revert 2bf15a3330a from master. It's definitely fixing _a_ problem, but it's one we've lived with for many years already.

Re: [ANNOUNCE] Git v2.4.0-rc2

2015-04-15 Thread Jeff King
[side note: please trim your quoted material when doing inline quoting] On Thu, Apr 16, 2015 at 12:05:57PM +1000, Bryan Turner wrote: merge: pass verbosity flag down to merge-recursive I'm pretty confident this change is working as intended, but the intended change is causing a

Re: [ANNOUNCE] Git v2.4.0-rc2

2015-04-15 Thread Bryan Turner
On Wed, Apr 15, 2015 at 7:48 AM, Junio C Hamano gits...@pobox.com wrote: A release candidate Git v2.4.0-rc2 is now available for testing at the usual places. The difference since -rc1 is mostly l10n and a handful of documentation clean-ups. The tarballs are found at:

[PATCH] fmt-merge-msg: plug small leak of commit buffer

2015-04-15 Thread Junio C Hamano
A broken or badly formatted commit might not record author or committer lines; the function record_person() returned after calling get_commit_buffer() without calling unuse_commit_buffer() on the memory, potentially leaking it. Signed-off-by: Junio C Hamano gits...@pobox.com --- * to be applied

Re: Odd broken --date=now behavior in current git

2015-04-15 Thread Eric Sunshine
On Tue, Apr 14, 2015 at 09:47:38PM -0700, Junio C Hamano wrote: Linus Torvalds torva...@linux-foundation.org writes: Lookie here, I can reproduce it trivially with current git (in the git repo itself): [torvalds@i7 git]$ date; git commit -m Test --allow-empty --date=now Tue Apr

Re: [PATCH] git-gui: sort entries in tclIndex

2015-04-15 Thread Olaf Hering
Ping? On Tue, Feb 10, Olaf Hering wrote: Ping? On Mon, Jan 26, Olaf Hering wrote: ALL_LIBFILES uses wildcard, which provides the result in directory order. This order depends on the underlying filesystem on the buildhost. To get reproducible builds it is required to sort such list

[ANNOUNCE] Git Rev News edition 2 published

2015-04-15 Thread Christian Couder
Hi, Git Rev News edition 2 is now available: https://git.github.io/rev_news/2015/04/05/edition-2/ Thanks a lot to all the helpers! Enjoy, Christian, Thomas and Nicola. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: Odd broken --date=now behavior in current git

2015-04-15 Thread Peter Krefting
Linus Torvalds: I can't be the only one seeing this? My guess is that there's a missing initialization of tm.tm_isdst somewhere or whatever. I can confirm it if I enable DST on my machine (I usually run my machines on CET all-year, to avoid these kind of issues): $ echo $TZ Europe/Oslo

Re: What's cooking in git.git (Apr 2015, #02; Tue, 14)

2015-04-15 Thread Johannes Schindelin
Hi Junio, On 2015-04-14 23:49, Junio C Hamano wrote: * jc/update-instead-into-void (2015-04-01) 1 commit (merged to 'next' on 2015-04-08 at 8ef4e15) + push-to-deploy: allow pushing into an unborn branch and updating it A push into an unborn branch, with receive.denyCurrentBranch set

Re: What's cooking in git.git (Apr 2015, #02; Tue, 14)

2015-04-15 Thread Torsten Bögershausen
On 2015-04-14 23.49, Junio C Hamano wrote: * tg/perf-lib-test-perf-cleanup (2013-09-19) 2 commits - perf-lib: add test_perf_cleanup target - perf-lib: split starting the test from the execution Add test_perf_cleanup shell function to the perf suite, that allows the script writers to

Re: [PATCH 3/3] refs.c: remove lock_fd from struct ref_lock

2015-04-15 Thread Michael Haggerty
On 04/15/2015 12:25 AM, Stefan Beller wrote: The 'lock_fd' is the same as 'lk-fd'. No need to store it twice so remove it. You may argue this introduces more coupling as we need to know more about the internals of the lock file mechanism, but this will be solved in a later patch. No

Re: How to send a warning message from git hosting server?

2015-04-15 Thread Sitaram Chamarty
On 04/12/2015 04:55 PM, Yi, EungJun wrote: On Wed, Apr 8, 2015 at 8:08 PM, Tony Finch d...@dotat.at wrote: Yi, EungJun semtlen...@gmail.com wrote: I want a way to response a remote message when a client send any kind of request. Is it possible? Yes, though you need a wrapper around git.

[PATCH] progress: no progress in background

2015-04-15 Thread Luke Mewburn
Disable the display of the progress if stderr is not the current foreground process. Still display the final result when done. Signed-off-by: Luke Mewburn l...@mewburn.net Acked-by: Nicolas Pitre n...@fluxnic.net --- progress.c | 22 -- 1 file changed, 16 insertions(+), 6

Re: [msysGit] Re: Sneak peek of the upcoming Git for Windows 2.x

2015-04-15 Thread Johannes Schindelin
Hi Vitaly, On 2015-04-15 09:17, Vitaly wrote: feel free to give it a spin: https://git-for-windows.github.io/#download I have installed msysgit 1.9.4, installing git for windows 2.3.5.8 (into default localtion and with use from Windows command prompt) Which version, 32-bit or 64-bit?