[PATCH v3] builtin/merge: support --squash --commit

2019-07-18 Thread Edmundo Carmona Antoranz
Using --squash made git stop regardless of conflicts so that the user could finish the operation with a later call to git-commit. Now --squash --commit allows for the operation to finish with the new revision if there are no conflicts. If the user does not use --commit, then --no-commit is used as

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread Carlo Arenas
On Thu, Jul 18, 2019 at 6:31 PM Jonathan Nieder wrote: > > This makes sense to me. Not really for the 'for' loop declaration > aspect: for that, I'd want some more specialized tool that allows > turning on such a check specifically. But more because Ubuntu trusty > is still a platform that some

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread Jonathan Nieder
SZEDER Gábor wrote: > I expected that this will eventually happen after Travis CI's default > Linux image recently changed from Ubuntu 14.04 to 16.04; explanation > in the commit message below. > > With that patch issues like this could be caught earlier, while they > are only in 'pu' but not yet

Re: [RFC/PATCH] CodingGuidelines: spell out post-C89 rules

2019-07-18 Thread Jonathan Nieder
Junio C Hamano wrote: > -- >8 -- > Even though we have been sticking to C89, there are a few handy > features we borrow from more recent C language in our codebase after > trying them in weather balloons and saw that nobody screamed. > > Spell them out. > > While at it, extend the existing variabl

[PATCH v2 0/4] pre-merge hook

2019-07-18 Thread Josh Steadmon
(I'm resending this cover letter with fixed Message-Id so that threading @ public-inbox works properly. Sorry for the noise.) I would like to revive discussion on this series; I have addressed most of the review comments on the original series sent by Michael, with the following exceptions: * Mar

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread SZEDER Gábor
On Thu, Jul 18, 2019 at 09:12:52AM -0700, Junio C Hamano wrote: > SZEDER Gábor writes: > > > With that patch issues like this could be caught earlier, while they > > are only in 'pu' but not yet in 'next'. But do we really want to do > > that, is that the right tradeoff? > > I am sort of in fav

[PATCH v2 0/4] pre-merge hook

2019-07-18 Thread Josh Steadmon
I would like to revive discussion on this series; I have addressed most of the review comments on the original series sent by Michael, with the following exceptions: * Martin's objection on 1/4 that the sample hook would always exit successfully is (I believe) incorrect. To test this, I ran "/

[PATCH v2 4/4] t7503: add tests for pre-merge-hook

2019-07-18 Thread Josh Steadmon
From: Michael J Gruber Add tests which make sure that the pre-merge-hook is called when present, allows/disallows merge commits depending on its return value and is suppressed by "--no-verify". [js: renamed test as suggested in review comments] Signed-off-by: Michael J Gruber Signed-off-by: Jo

[PATCH v2 3/4] merge: --no-verify to bypass pre-merge hook

2019-07-18 Thread Josh Steadmon
From: Michael J Gruber Analogous to commit, introduce a '--no-verify' option which bypasses the pre-merge hook. The shorthand '-n' is taken by the (non-existing) '--no-stat' already. [js: cleaned up trailing whitespace, moved some documentation changes from this commit to 2/4.] Signed-off-by:

[PATCH v2 1/4] git-merge: Honor pre-merge hook

2019-07-18 Thread Josh Steadmon
From: Michael J Gruber git-merge does not honor the pre-commit hook when doing automatic merge commits, and for compatibility reasons this is going to stay. Introduce a pre-merge hook which is called for an automatic merge commit just like pre-commit is called for a non-automatic merge commit (o

[PATCH v2 2/4] merge: do no-verify like commit

2019-07-18 Thread Josh Steadmon
From: Michael J Gruber f8b863598c ("builtin/merge: honor commit-msg hook for merges", 2017-09-07) introduced the no-verify flag to merge for bypassing the commit-msg hook, though in a different way from the implementation in commit.c. Change the implementation in merge.c to be the same as in com

What's cooking in git.git (Jul 2019, #04; Thu, 18)

2019-07-18 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding onto them. You can find the changes described

Re: [PATCH] rm: resolving by removal is not a warning-worthy event

2019-07-18 Thread Jeff King
On Thu, Jul 18, 2019 at 02:07:23PM -0700, Junio C Hamano wrote: > >> + git rm qfwfq >msg && > >> + test_i18ngrep ! "needs merge" msg && > > > > Should we capture stderr from "git rm", too, to cover all bases? > > Do you mean > > git rm blob >msg 2>&1 > > because we could later change ou

Re: [PATCH] rm: resolving by removal is not a warning-worthy event

2019-07-18 Thread Junio C Hamano
Jeff King writes: >> +test_expect_success 'Resolving by removal is not a warning-worthy event' ' >> +git reset -q --hard && >> +test_when_finished "rm -f .git/index.lock msg && git reset -q --hard" && >> +qfwfq=$(echo qfwfq | git hash-object -w --stdin) && > > I'd have called this "$b

Your diplomatic luggage

2019-07-18 Thread opendoorssecurities1
I'm Clinton Morgan, I have been instructed to notify you of the availability of a package deposited by your relative (our client) in your name at the event of demise. We are entrusted and empowered with diplomatic immunity and status to safe keep valuable packages and baggage in trust for our r

Re: [PATCH 23/24] t5505,t5516: create .git/branches/ when needed

2019-07-18 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > From: Johannes Schindelin > > It is a real old anachronism from the Cogito days to have a > .git/branches/ directory. And to have tests that ensure that Cogito > users can migrate away from using that directory. > > But so be it, let's continue te

Re: [PATCH] rm: resolving by removal is not a warning-worthy event

2019-07-18 Thread Jeff King
On Wed, Jul 17, 2019 at 01:38:35PM -0700, Junio C Hamano wrote: > When resolving a conflict on a path in favor of removing it, using > "git rm" on it is the standard way to do so. The user however is > greeted with a "needs merge" message during that operation: > > $ git merge side-branch

Re: [PATCH 0/1] Adding git-ignore command, tests, and documentation.

2019-07-18 Thread Jeff King
On Wed, Jul 17, 2019 at 09:35:34AM -0700, Junio C Hamano wrote: > "Thurston via GitGitGadget" writes: > > > Instead of managing paths and relative paths such as echo > > "path/to/the/file.txt" >../../../../../../.gitignore git ignore > > path/to/the/file.txt No matter what directory that is in,

Re: [PATCH 0/1] Fix rendering of text in angle brackets in README.md

2019-07-18 Thread Jeff King
On Thu, Jul 18, 2019 at 12:08:45PM -0700, Doug Ilijev via GitGitGadget wrote: > Markdown incorrectly interpreted as an HTML tag; use backticks > to escape Documentation/git-.txt to ensure that it renders the > text as intended. > > An alternative would be to HTML-escape the angle-brackets, at th

Re: [RFC PATCH 5/9] sequencer: move the code writing total_nr on the disk to a new function

2019-07-18 Thread Junio C Hamano
Alban Gruin writes: > The total amount of commands can be used to show the progression of the > rebasing in a shell. This number is written to the disk by > read_populate_todo() when the todo list is loaded from > sequencer_continue() or pick_commits(), but not by complete_action(), > which rele

Re: [RFC PATCH 4/9] sequencer: update `done_nr' when skipping commands in a todo list

2019-07-18 Thread Junio C Hamano
Alban Gruin writes: > In a todo list, `done_nr' is the amount of commands that were executed > or skipped, but skip_unnecessary_picks() did not update it. OK. Together with 3/9 and this one, any increment of total_nr and done_nr in the existing code is not removed; does it mean that nobody actu

Re: [RFC PATCH 3/9] sequencer: update `total_nr' when adding an item to a todo list

2019-07-18 Thread Junio C Hamano
Alban Gruin writes: > `total_nr' is the total amount of items, done and toto, that are in a "amount" -> "number" perhaps. Also s/toto/todo/ perhaps but I am not sure what you wanted to say here, so... > todo list. But unlike `nr', it was not updated when an item was > appended to the list. G

[PATCH 0/1] Fix rendering of text in angle brackets in README.md

2019-07-18 Thread Doug Ilijev via GitGitGadget
Markdown incorrectly interpreted as an HTML tag; use backticks to escape Documentation/git-.txt to ensure that it renders the text as intended. An alternative would be to HTML-escape the angle-brackets, at the cost of readability of the markdown in plaintext form. I opted for the backticks to pre

[PATCH 1/1] README: fix rendering of text in angle brackets

2019-07-18 Thread Doug Ilijev via GitGitGadget
From: Doug Ilijev Markdown incorrectly interpreted `` as an HTML tag; use backticks to escape `Documentation/git-.txt` to ensure that it renders the text as intended. Signed-off-by: Doug Ilijev --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README

[GSoC][PATCH v2 2/2] rebase -i: support --committer-date-is-author-date

2019-07-18 Thread Rohit Ashiwal
rebase am already has this flag to "lie" about the committer date by changing it to the author date. Let's add the same for interactive machinery. Signed-off-by: Rohit Ashiwal --- Documentation/git-rebase.txt| 7 ++-- builtin/rebase.c| 23 ++--- seque

[GSoC][PATCH v2 1/2] sequencer: add NULL checks under read_author_script

2019-07-18 Thread Rohit Ashiwal
read_author_script reads name, email and author date from the author script. However, it does not check if the arguments are NULL. Adding NULL checks will allow us to selectively get the required value, for example: char *date; if (read_author_script(_path_, NULL, NULL, &date, _int_))

[GSoC][PATCH v2 0/2] rebase -i: support --committer-date-is-author-date

2019-07-18 Thread Rohit Ashiwal
Another revision to keep this thread alive. Rohit Ashiwal (2): sequencer: add NULL checks under read_author_script rebase -i: support --committer-date-is-author-date Documentation/git-rebase.txt| 7 ++- builtin/rebase.c| 23 +++-- sequencer.c

[GSoC][PATCH v2 1/1] rebase -i: add --ignore-whitespace flag

2019-07-18 Thread Rohit Ashiwal
There are two backends available for rebasing, viz, the am and the interactive. Naturally, there shall be some features that are implemented in one but not in the other. One such flag is --ignore-whitespace which indicates merge mechanism to treat lines with only whitespace changes as unchanged. Wi

[GSoC][PATCH v2 0/1] rebase -i: support --ignore-whitespace

2019-07-18 Thread Rohit Ashiwal
Another revision to keep the thread alive. Rohit Ashiwal (1): rebase -i: add --ignore-whitespace flag Documentation/git-rebase.txt| 9 +++- builtin/rebase.c| 26 -- sequencer.h | 1 + t/t3422-rebase-incompatible-options.

Re: [RFC PATCH 1/9] t3404: demonstrate that --edit-todo does not check for dropped commits

2019-07-18 Thread Junio C Hamano
Alban Gruin writes: > When set to "warn" or "error", `rebase.missingCommitCheck' would make > rebase -i warn if the user removed commits from the todo list to prevent > mistakes. Unfortunately, rebase --edit-todo and rebase --continue don't > take it into account. > > This adds three tests to t3

Re: [PATCH] fetch: add "--parallel", which fetches all remotes in parallel

2019-07-18 Thread Junio C Hamano
Palmer Dabbelt writes: > * I'm not sure if it's safe to access the .git database from multiple > processes at the same time. It is supposed to, and also you are supposed to keep it that way ;-) > * As I was writing the documentation I found "fetch --jobs". It seems > like I should use that

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread Eric Sunshine
On Thu, Jul 18, 2019 at 11:22 AM SZEDER Gábor wrote: > C99 'for' loop initial declaration, i.e. 'for (int i = 0; i < n; i++)', > is not allowed in Git's codebase yet, to maintain compatibility with > some older compilers. > [...] > [1] The Azure Pipelines builds have been using Ubuntu 16.04 images

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread Junio C Hamano
SZEDER Gábor writes: > With that patch issues like this could be caught earlier, while they > are only in 'pu' but not yet in 'next'. But do we really want to do > that, is that the right tradeoff? I am sort of in favor of having at least one build with an older compiler without "-std=c99", lik

Re: [PATCH v2 1/1] clean: show an error message when the path is too long

2019-07-18 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > From: Johannes Schindelin > > Without an error message when `lstat()` failed, `git clean` would > abort without an error message, leaving the user quite puzzled. Let's drop the first three words ;-) Sorry for not catching it earlier and parrotti

Re: [PATCH v2] transport-helper: enforce atomic in push_refs_with_push

2019-07-18 Thread SZEDER Gábor
On Tue, Jul 16, 2019 at 09:53:59AM -0700, Junio C Hamano wrote: > Carlo Arenas writes: > >> + for (struct ref *it = remote_refs; it; it = > >> it->next) > > > > moving "struct ref it" out of the loop, allows for building with ancient > > compilers that don't support C90 (ev

[PATCH 15/24] contrib/buildsystems: also handle -lexpat

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This is a dependency required for the non-smart HTTP backend. Signed-off-by: Johannes Schindelin --- contrib/buildsystems/engine.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/buildsystems/engine.pl b/contrib/buildsystems/engine.pl index c35844a0c7..

[PATCH 19/24] vcxproj: also link-or-copy builtins

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The default location for `.exe` files linked by Visual Studio depends on the mode (debug vs release) and the architecture. Meaning: after a full build, there is a `git.exe` in the top-level directory, but none of the built-ins are linked.. When running a test script in

[PATCH 07/24] contrib/buildsystems: fix misleading error message

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley The error message talked about a "lib option", but it clearly referred to a link option. Signed-off-by: Philip Oakley Signed-off-by: Johannes Schindelin --- contrib/buildsystems/engine.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/buildsyst

[PATCH 16/24] contrib/buildsystems: handle options starting with a slash

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin With the recent changes to allow building with MSVC=1, we now pass the /OPT:REF option to the compiler. This confuses the parser that wants to turn the output of a dry run into project definitions for QMake and Visual Studio: Unhandled link option @ line 213: /O

[PATCH 06/24] contrib/buildsystems: ignore irrelevant files in Generators/

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The Generators/ directory can contain spurious files such as editors' backup files. Even worse, there could be .swp files which are not even valid Perl scripts. Let's just ignore anything but .pm files in said directory. Signed-off-by: Johannes Schindelin --- contrib

[PATCH 09/24] contrib/buildsystems: ignore gettext stuff

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Git's build contains steps to handle internationalization. This caused hiccups in the parser used to generate QMake/Visual Studio project files. As those steps are irrelevant in this context, let's just ignore them. Signed-off-by: Philip Oakley Signed-off-by: Johannes Schin

[PATCH 08/24] contrib/buildsystems: handle quoted spaces in filenames

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley The engine.pl script expects file names not to contain spaces. However, paths with spaces are quite prevalent on Windows. Use shellwords() rather than split() to parse them correctly. Helped-by: Junio C Hamano Signed-off-by: Philip Oakley Signed-off-by: Johannes Schindelin

[PATCH 24/24] git: avoid calling aliased builtins via their dashed form

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This is one of the few places where Git violates its own deprecation of the dashed form. It is not necessary, either. As of 595d59e2b53 (git.c: ignore pager.* when launching builtin as dashed external, 2017-08-02), Git wants to ignore the pager.* config setting when exp

[PATCH 23/24] t5505,t5516: create .git/branches/ when needed

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin It is a real old anachronism from the Cogito days to have a .git/branches/ directory. And to have tests that ensure that Cogito users can migrate away from using that directory. But so be it, let's continue testing it. Let's make sure, however, that git init does not n

[PATCH 21/24] .gitignore: ignore Visual Studio's temporary/generated files

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Signed-off-by: Johannes Schindelin --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index e7bb15d301..fcfb708b9e 100644 --- a/.gitignore +++ b/.gitignore @@ -233,4 +233,7 @@ *.manifest Debug/ Release/ +/UpgradeLog*.htm +/

[PATCH 14/24] contrib/buildsystems: handle libiconv, too

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Git's test suite shows tons of breakages unless Git is compiled *without* NO_ICONV. That means, in turn, that we need to generate build definitions *with* libiconv, which in turn implies that we have to handle the -liconv option properly. Signed-off-by: Johannes Schinde

[PATCH 13/24] contrib/buildsystems: handle the curl library option

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Upon seeing the '-lcurl' option, point to the libcurl.lib. While there, fix the elsif indentation. Signed-off-by: Philip Oakley Signed-off-by: Johannes Schindelin --- contrib/buildsystems/engine.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/con

[PATCH 04/24] Vcproj.pm: urlencode '<' and '>' when generating VC projects

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Signed-off-by: Johannes Schindelin --- contrib/buildsystems/Generators/Vcproj.pm | 8 1 file changed, 8 insertions(+) diff --git a/contrib/buildsystems/Generators/Vcproj.pm b/contrib/buildsystems/Generators/Vcproj.pm index b17800184c..737647e76a 100644 --- a

[PATCH 05/24] contrib/buildsystems: ignore invalidcontinue.obj

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Since 4b623d8 (MSVC: link in invalidcontinue.obj for better POSIX compatibility, 2014-03-29), invalidcontinue.obj is linked in the MSVC build, but it was not parsed correctly by the buildsystem. Ignore it, as it is known to Visual Studio and will be handled elsewhere. Also on

[PATCH 10/24] contrib/buildsystems: redirect errors of the dry run into a log file

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Rather than swallowing the errors, it is better to have them in a file. To make it obvious what this is about, use the file name 'msvc-build-makedryerrors.txt'. Further, if the output is empty, simply delete that file. As we target Git for Windows' SDK (which, unlike its pre

[PATCH 03/24] Vcproj.pm: do not configure VCWebServiceProxyGeneratorTool

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin It is not necessary, and Visual Studio 2015 no longer supports it, anyway. Signed-off-by: Johannes Schindelin --- contrib/buildsystems/Generators/Vcproj.pm | 12 1 file changed, 12 deletions(-) diff --git a/contrib/buildsystems/Generators/Vcproj.pm b/co

[PATCH 18/24] msvc: add a Makefile target to pre-generate the Visual Studio solution

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The entire idea of generating the VS solution makes only sense if we generate it via Continuous Integration; otherwise potential users would still have to download the entire Git for Windows SDK. If we pre-generate the Visual Studio solution, Git can be built entirely w

[PATCH 12/24] contrib/buildsystems: error out on unknown option

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin One time too many did this developer call the `generate` script passing a `--make-out=` option that was happily ignored (because there should be a space, not an equal sign, between `--make-out` and the path). And one time too many, this script not only ignored it but di

[PATCH 17/24] contrib/buildsystems: add a backend for modern Visual Studio versions

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Based on the previous patches in this patch series that fixed the generator for `.vcproj` files (which were used by Visual Studio prior to 2015 to define projects), this patch offers to generate project definitions for neweer versions of Visual Studio (which use `.vcxpro

[PATCH 01/24] Vcproj.pm: auto-generate GUIDs

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin We ran out GUIDs. Again. But there is no need to: we can generate them semi-randomly from the target file name of the project. Note: the Vcproj generator is probably only interesting for historical reasons; nevertheless, the upcoming Vcxproj generator (to support modern

[PATCH 11/24] contrib/buildsystems: optionally capture the dry-run in a file

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Add an option for capturing the output of the make dry-run used in determining the msvc-build structure for easy debugging. You can use the output of `--make-out ` in subsequent runs via the `--in ` option. Signed-off-by: Philip Oakley Signed-off-by: Johannes Schindelin --

[PATCH 00/24] Reinstate support for Visual Studio

2019-07-18 Thread Johannes Schindelin via GitGitGadget
A long time ago, we added support to build .sln and .vcproj files for use within Visual Studio, so that Git could be built in that popular IDE. This support languished for years and was finally brought back into Git for Windows partially through the jh/msvc branch that was just merged into master

[PATCH 20/24] .gitignore: touch up the entries regarding Visual Studio

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Add the Microsoft .manifest pattern, and do not anchor the 'Debug' and 'Release' entries at the top-level directory, to allow for multiple projects (one per target). Signed-off-by: Philip Oakley Signed-off-by: Johannes Schindelin --- .gitignore | 5 +++-- 1 file changed, 3

[PATCH 22/24] bin-wrappers: append `.exe` to target paths if necessary

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin When compiling with Visual Studio, the projects' names are identical to the executables modulo the extensions. Read: there will exist both a directory called `git` as well as an executable called `git.exe` in the end. Which means that the bin-wrappers *need* to target th

[PATCH 02/24] Vcproj.pm: list git.exe first to be startup project

2019-07-18 Thread Philip Oakley via GitGitGadget
From: Philip Oakley Visual Studio takes the first listed application/library as the default startup project [1]. Detect the 'git' project and place it at the head of the project list, rather than at the tail. Export the apps list before libs list for both the projects and global structures of t

Gott schütze dich.

2019-07-18 Thread Augustine Amaga
Guten Tag , Es tut mir leid, Sie in dieser Angelegenheit ohne Ihre vorherige Zustimmung zu kontaktieren. Es war wegen der Dringlichkeit der Dinge. Ich bin Auguste AMAGA, ein Rechtsanwalt, und der persönliche Anwalt von ein verstorbener Kunde aus Ihrem Land. Ich würde gerne wissen, ob wir zusamm

Gott schütze dich.

2019-07-18 Thread Augustine Amaga
Guten Tag , Es tut mir leid, Sie in dieser Angelegenheit ohne Ihre vorherige Zustimmung zu kontaktieren. Es war wegen der Dringlichkeit der Dinge. Ich bin Auguste AMAGA, ein Rechtsanwalt, und der persönliche Anwalt von ein verstorbener Kunde aus Ihrem Land. Ich würde gerne wissen, ob wir zusamm

[PATCH v2 1/1] clean: show an error message when the path is too long

2019-07-18 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin Without an error message when `lstat()` failed, `git clean` would abort without an error message, leaving the user quite puzzled. In particular on Windows, where the default maximum path length is quite small (yet there are ways to circumvent that limit in many cases),

[PATCH v2 0/1] Show an error if too-long paths are seen by git clean -dfx

2019-07-18 Thread Johannes Schindelin via GitGitGadget
This is particularly important on Windows, where PATH_MAX is very small compared to Unix/Linux. Changes since v1: * Matched the warning message style to existing ones, * Fixed test in multiple ways: * Avoiding touch in favor of : >. * Using test_config. * Using test_i18ngrep instead of

Re: [PATCH 1/1] clean: show an error message when the path is too long

2019-07-18 Thread Johannes Schindelin
Hi, On Wed, 17 Jul 2019, Junio C Hamano wrote: > Junio C Hamano writes: > > >> The other warnings in that function are issued using > >> warning_errno() (shorter code, consistency is enforced) and > >> messages are marked for translation. That would be nice to have > >> here as well, no? > > >