Re: [PATCH v2 1/2] path: add a function to check for path suffix

2019-08-11 Thread SZEDER Gábor
On Mon, Aug 12, 2019 at 01:10:54AM +, brian m. carlson wrote: > On 2019-08-12 at 00:32:26, Junio C Hamano wrote: > > "brian m. carlson" writes: > > > +static ssize_t stripped_path_suffix_offset(const char *path, const char > > > *suffix) > > > > Perhaps > > > > static ssize_t last_path_

[no subject]

2019-08-11 Thread JOHNSON
-- OFFRE DE PRÊT !!! APPLIQUER MAINTENANT Faites une demande de prêt urgent aujourd'hui ... faites une demande de prêt privé, de prêt commercial et de prêt personnel avec un taux d'intérêt très bas, aussi bas que 2%, sur une période de remboursement de 1-25 ans, dans le monde entier. Nous accord

Re: [PATCH v2 1/2] path: add a function to check for path suffix

2019-08-11 Thread brian m. carlson
On 2019-08-12 at 00:32:26, Junio C Hamano wrote: > "brian m. carlson" writes: > > +static ssize_t stripped_path_suffix_offset(const char *path, const char > > *suffix) > > Perhaps > > static ssize_t last_path_component_offset(const char *path, const char > *name) > > I am tempted to also

Re: [PATCH 1/1] doc: fix repeated words

2019-08-11 Thread Junio C Hamano
Jeff King writes: >> There were many false positives by this grep command, including >> deliberate repeated words like "really really" or valid uses of "that >> that" which I left alone, of course. >> >> I also did not correct any of the legitimate, accidentally repeated >> words in old RelNotes

Re: What's cooking in git.git (Jul 2019, #06; Thu, 25)

2019-08-11 Thread Junio C Hamano
Jeff King writes: > IMHO scripting around "action" commands like checkout is less bad than > around "output" commands like log. The general action of "switch to this > branch" is unlikely to be changed much over the years (or via config), > but the output of log, etc, is. > > There are no guarant

Re: [PATCH v2 1/2] path: add a function to check for path suffix

2019-08-11 Thread Junio C Hamano
"brian m. carlson" writes: > We have a function to strip the path suffix from a commit, but we don't > have one to check for a path suffix. For a plain filename, we can use > basename, but that requires an allocation, since POSIX allows it to > modify its argument. Refactor strip_path_suffix into

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Pratyush Yadav
On 11/08/19 11:31PM, Farhan Khan wrote: > August 11, 2019 11:04 AM, "Pratyush Yadav" wrote: > > > On 10/08/19 11:47PM, Farhan Khan wrote: > > > >> Hi, > >> > >> I am trying to write an implementation of git clone over ssh and am a > >> little confused how to > >> determine a server response ha

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Farhan Khan
August 11, 2019 11:04 AM, "Pratyush Yadav" wrote: > On 10/08/19 11:47PM, Farhan Khan wrote: > >> Hi, >> >> I am trying to write an implementation of git clone over ssh and am a little >> confused how to >> determine a server response has ended. Specifically, after a client sends >> its reques

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Junio C Hamano
"Farhan Khan" writes: > I am trying to write an implementation of git clone over ssh and > am a little confused how to determine a server response has > ended. Specifically, after a client sends its requested 'want', > the server sends the pack content over. However, how does the > client know to

Re: [RFC PATCH] http: use xmalloc with cURL

2019-08-11 Thread Carlo Arenas
On Sun, Aug 11, 2019 at 4:20 AM Johannes Schindelin wrote: > On Sat, 10 Aug 2019, Carlo Marcelo Arenas Belón wrote: > > cURL is very strict about its allocator being thread safe and so that might > > be an issue to look for. > > Looks good to me. it is not ready yet for using though, at minimum I

[PATCH v2 0/2] Honor .gitattributes with rebase --am

2019-08-11 Thread brian m. carlson
This series makes rebase --am honor the .gitattributes file for subsequent patches when a patch changes it. Changes from v1: * Add has_path_suffix in a separate commit. brian m. carlson (2): path: add a function to check for path suffix apply: reload .gitattributes after patching it apply.c

[PATCH v2 2/2] apply: reload .gitattributes after patching it

2019-08-11 Thread brian m. carlson
When applying multiple patches with git am, or when rebasing using the am backend, it's possible that one of our patches has updated a gitattributes file. Currently, we cache this information, so if a file in a subsequent patch has attributes applied, the file will be written out with the attribute

[PATCH v2 1/2] path: add a function to check for path suffix

2019-08-11 Thread brian m. carlson
We have a function to strip the path suffix from a commit, but we don't have one to check for a path suffix. For a plain filename, we can use basename, but that requires an allocation, since POSIX allows it to modify its argument. Refactor strip_path_suffix into a helper function and a new function

[PATCH] .mailmap: update email address of Philip Oakley

2019-08-11 Thread Philip Oakley
My IEE 'home for life' email service is being withdrawn on 30 Sept 2019. Replace with my new email domain. I also have a secondary (backup) 'home for life' through . Signed-off-by: Philip Oakley Signed-off-by: Philip Oakley --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mail

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Pratyush Yadav
On 10/08/19 11:47PM, Farhan Khan wrote: > Hi, > > I am trying to write an implementation of git clone over ssh and am a little > confused how to determine a server response has ended. Specifically, after a > client sends its requested 'want', the server sends the pack content over. > However, h

Re: Incorrect behavior from git checkout --patch

2019-08-11 Thread Phillip Wood
Hi Dave On 11/08/2019 10:54, Phillip Wood wrote: Hi Dave Thanks for the bug report. I've tried to reproduce it on the latest master, version 2.22.0 and 2.20.1 and am unable to do so. Doh, I was doing 'git checkout -p HEAD', when I checkout from the index I can reproduce the bug and it is fi

Projet de financement

2019-08-11 Thread CAHON Marie-france
Bonjour Mr ou Madame, Vous avez envie d'investir minimum 25€ ou plus dans un projet qui va vous générer minimum 1500 € tous les mois voir plus selon votre investissement ??? Avez vous envie de réaliser vos rêves ? Créer votre vie ? Accédez à la liberté financière ? Je vous propose un business rent

Re: suggestion for improved docs on autocrlf

2019-08-11 Thread Torsten Bögershausen
On Fri, Aug 09, 2019 at 03:34:05PM +, Yagnatinsky, Mark wrote: > After correcting spelling of renormalize, the end result of the script you > gave is that line endings in working directory are CRLF, > and in the repo are LF. > Is that expected? Yes. "git add" does typically not touch the file

Re: [RFC PATCH] http: use xmalloc with cURL

2019-08-11 Thread Johannes Schindelin
Hi, On Sat, 10 Aug 2019, Carlo Marcelo Arenas Belón wrote: > 4a30976e28 ([PATCH] support older versions of libcurl, 2005-07-28) added > support for conditionally initializing cURL but when f0ed8226c9 > (Add custom memory allocator to MinGW and MacOS builds, 2009-05-31) that > support wasn't upda

Re: Incorrect behavior from git checkout --patch

2019-08-11 Thread Phillip Wood
Hi Dave Thanks for the bug report. I've tried to reproduce it on the latest master, version 2.22.0 and 2.20.1 and am unable to do so. I thought it might be related to a bug I recently fixed[1] but it does not appear to be. I've appended the files I used below just in case I made a mistake tra