hello Git

2019-08-28 Thread Duncan Ferguson
Githttps://u.to/mQMuFg Duncan Ferguson

To know

2019-08-28 Thread Abdelkader Alsamman
Greetings, I am Mr.Abdelkader Alsamman from Syria,It's possible for a foreigner to invest in education in your country?let me know the feasibility studies as I want to relocate my investment to your country and I need a local partner because I want to relocate my family out from Syria due to t

Re: git-p4, and python2 EOL

2019-08-28 Thread Andrey
Luke, 28.08.2019, 04:49, "Luke Diamand" : > We're coming up on when Python2 is end-of-lifed - we have until > January 1st 2020. > > git-p4 uses python2, and doesn't work under python3 at all. > > The problem is the conversions between Python3 unicode strings and git > (utf-8) and p4 (utf-8, except

Re: [PATCH 1/2] config: allow config_with_options() to handle any repo

2019-08-28 Thread Matheus Tavares Bernardino
On Tue, Aug 27, 2019 at 8:46 PM Matheus Tavares Bernardino wrote: > > Hi, Duy > > On Tue, Aug 27, 2019 at 6:26 AM Duy Nguyen wrote: > > > > On Tue, Aug 27, 2019 at 6:57 AM Matheus Tavares > > wrote: > > > > > > Currently, config_with_options() relies on the global the_repository > > > when it ha

Re: [PATCH 1/1] git-p4: auto-delete named temporary file

2019-08-28 Thread Junio C Hamano
Johannes Schindelin writes: > Yes, this was me trying to re-send the patch via GMail's web UI because > the first time GitGitGadget sent it, it did not get through (only the > cover letter did). As long as that was manual screw-up, while fixing some glitches in the machinery, that is fine. I ca

Re: git-diff passes : args to GIT_EXTERNAL_DIFF incorrectly?

2019-08-28 Thread Junio C Hamano
Dmitry Nikulin writes: > $ env GIT_EXTERNAL_DIFF=./print_argv.py git diff > origin/branch1:file1.txt origin/branch2:file2.txt I didn't even know external-diff driver is called (and does not even segfaut) in the "compare two blobs" hack codepath. The syntax : you have on the command line resolve

Re: [PATCH] gitk: Make web links clickable

2019-08-28 Thread Junio C Hamano
Paul Mackerras writes: > I was expecting some comments and suggestions, so I didn't push it out > yet. One suggestion which seems reasonable is to match any http or > https URL anywhere in the commit description, not just with Link: or > BugLink: at the start of the line. What do you think of t

Re: Is git clone followed by git verify-tag meaningful?

2019-08-28 Thread Junio C Hamano
Konstantin Ryabitsev writes: > If I know that a project uses tag signing, would "git clone" followed > by "git verify-tag" be meaningful without a "git fsck" in-between? > I.e. if an attacker has control over the remote server, can they sneak > in any badness into any of the resulting files and s

[PATCH v2] gitk: Make web links clickable

2019-08-28 Thread Paul Mackerras
This makes gitk look for http or https URLs in the commit description and make the URLs clickable. Clicking on them will invoke an external web browser with the URL. The web browser command is by default "xdg-open" on Linux, "open" on MacOS, and "cmd /c start" on Windows. The command can be chan

Re: [PATCH] gitk: Make web links clickable

2019-08-28 Thread Paul Mackerras
Hi Junio, On Tue, Aug 27, 2019 at 01:32:30PM -0700, Junio C Hamano wrote: > Paul Mackerras writes: > > > This makes gitk look for lines in the commit message which start with > > "Link:" or "BugLink:" followed by a http or https URL, and make the > > URL clickable. Clicking on it will invoke an

[PATCH v3 3/4] Recommend git-filter-repo instead of git-filter-branch

2019-08-28 Thread Elijah Newren
filter-branch suffers from a deluge of disguised dangers that disfigure history rewrites (i.e. deviate from the deliberate changes). Many of these problems are unobtrusive and can easily go undiscovered until the new repository is in use. This can result in problems ranging from an even messier h

[PATCH v3 2/4] t3427: accelerate this test by using fast-export and fast-import

2019-08-28 Thread Elijah Newren
fast-export and fast-import can easily handle the simple rewrite that was being done by filter-branch, and should be significantly faster on systems with a slow fork. Timings from before and after on two laptops that I have access to (measured via `time ./t3427-rebase-subtree.sh`, i.e. including e

[PATCH v3 4/4] t9902: use a non-deprecated command for testing

2019-08-28 Thread Elijah Newren
t9902 had a list of three random porcelain commands as a sanity check, one of which was filter-branch. Since we are recommending people not use filter-branch, let's update this test to use rebase instead of filter-branch. Signed-off-by: Elijah Newren --- t/t9902-completion.sh | 12 ++--

[PATCH v3 0/4] Warn about git-filter-branch usage and avoid it

2019-08-28 Thread Elijah Newren
Here's a series warns about git-filter-branch usage and avoids it ourselves. Changes since v2 (full range-diff below): * [Patch 2] testcase syntax cleanups * [Patch 3] fixed "linkgit:" references to filter-repo to be url links (or footnotes) * [Patch 3] fixed the mode on filter-branch.sh

[PATCH v3 1/4] t6006: simplify and optimize empty message test

2019-08-28 Thread Elijah Newren
Test t6006.71 ("oneline with empty message") was creating two commits with simple commit messages, and then running filter-branch to rewrite the commit messages to be empty. This test was written this way because the --allow-empty-message option to git commit did not exist at the time. Simplify t

Re: Is git clone followed by git verify-tag meaningful?

2019-08-28 Thread Jeff King
On Wed, Aug 28, 2019 at 04:32:24PM -0400, Konstantin Ryabitsev wrote: > If I know that a project uses tag signing, would "git clone" followed by > "git verify-tag" be meaningful without a "git fsck" in-between? I.e. if an > attacker has control over the remote server, can they sneak in any badness

Re: [PATCH 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-28 Thread Jeff King
On Wed, Aug 28, 2019 at 04:18:23PM -0400, Jon Simons wrote: > Fix a bug in partial cloning with sparse filters by ensuring to check > for 'have_git_dir' before attempting to resolve the sparse filter OID. > > Otherwise the client will trigger: > > BUG: refs.c:1851: attempting to get main_ref

Re: Is git clone followed by git verify-tag meaningful?

2019-08-28 Thread brian m. carlson
On 2019-08-28 at 20:32:24, Konstantin Ryabitsev wrote: > Hi, all: > > If I know that a project uses tag signing, would "git clone" followed by > "git verify-tag" be meaningful without a "git fsck" in-between? I.e. if an > attacker has control over the remote server, can they sneak in any badness >

error: cannot cherry-pick during a revert

2019-08-28 Thread Mike Hommey
Hi, This just happened to me while cherry-pick'ing: $ git cherry-pick HEAD@{1} error: could not apply 614fe5e629b84... try hint: after resolving the conflicts, mark the corrected paths hint: with 'git add ' or 'git rm ' hint: and commit the result with 'git commit' Recorded preimage for 'taskclus

[PATCH v3] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Elijah Newren
As discovered on the mailing list, some of the descriptions of the ff-related options were unclear. Try to be more precise with what these options do. Signed-off-by: Elijah Newren --- Changes since v2: * reordered the options * typeset the option flags differently to ensure they are monospac

Re: [PATCH v2] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Elijah Newren
On Wed, Aug 28, 2019 at 12:15 PM Sergey Organov wrote: > > Hi, > [...] > Dunno if it helps, but here is what I came up with somewhere in previous > discussions: > > --ff:: > --no-ff:: > --ff-only:: > When the merge resolves as a fast-forward, only update the I think this loose wording (th

[PATCH v3 3/4] git-gui: return early when patch fails to apply

2019-08-28 Thread Pratyush Yadav
In the procedure apply_or_revert_range_or_line, if the patch does not apply successfully, a dialog is shown, but execution proceeds after that. Instead, return early on error so the parts that come after this don't work on top of an error state. Signed-off-by: Pratyush Yadav --- lib/diff.tcl | 2

[PATCH v3 1/4] git-gui: allow reverting selected lines

2019-08-28 Thread Pratyush Yadav
Just like the user can select lines to stage or unstage, add the ability to revert selected lines. Signed-off-by: Pratyush Yadav --- git-gui.sh | 25 - lib/diff.tcl | 20 ++-- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/git-gui.sh b/g

[PATCH v3 2/4] git-gui: allow reverting selected hunk

2019-08-28 Thread Pratyush Yadav
Just like the user can select a hunk to stage or unstage, add the ability to revert hunks. Signed-off-by: Pratyush Yadav --- git-gui.sh | 14 +- lib/diff.tcl | 21 - 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/git-gui.sh b/git-gui.sh index 6d

[PATCH v3 4/4] git-gui: allow undoing last revert

2019-08-28 Thread Pratyush Yadav
Accidental clicks on the revert hunk/lines buttons can cause loss of work, and can be frustrating. So, allow undoing the last revert. Right now, a stack or deque are not being used for the sake of simplicity, so only one undo is possible. Any reverts before the previous one are lost. Signed-off-b

[PATCH v3 0/4] git-gui: Add ability to revert selected hunks and lines

2019-08-28 Thread Pratyush Yadav
Hi, This series adds the ability to revert selected lines and hunks in git-gui. Partially based on the patch by Bert Wesarg [0]. The commits can be found in the topic branch 'py/revert-hunks-lines' at https://github.com/prati0100/git-gui/tree/py/revert-hunks-lines Changes in v3: - Drop the confi

Re: [PATCH v2 3/4] Recommend git-filter-repo instead of git-filter-branch

2019-08-28 Thread Elijah Newren
On Tue, Aug 27, 2019 at 11:17 PM Eric Sunshine wrote: > > On Tue, Aug 27, 2019 at 8:22 PM Elijah Newren wrote: > > filter-branch suffers from a deluge of disguised dangers that disfigure > > history rewrites (i.e. deviate from the deliberate changes). [...] > > > > Signed-off-by: Elijah Newren >

Re: [PATCH 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-28 Thread Eric Sunshine
On Wed, Aug 28, 2019 at 4:27 PM Jon Simons wrote: > Fix a bug in partial cloning with sparse filters by ensuring to check > for 'have_git_dir' before attempting to resolve the sparse filter OID. > [...] > Signed-off-by: Jon Simons > --- > diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-cl

Is git clone followed by git verify-tag meaningful?

2019-08-28 Thread Konstantin Ryabitsev
Hi, all: If I know that a project uses tag signing, would "git clone" followed by "git verify-tag" be meaningful without a "git fsck" in-between? I.e. if an attacker has control over the remote server, can they sneak in any badness into any of the resulting files and still have the clone, che

[PATCH 0/2] partial-clone: fix two issues with sparse filter handling

2019-08-28 Thread Jon Simons
Included here are two fixes for partial cloning with sparse filters. These issues were uncovered in early testing internally at GitHub, where Taylor and Peff have provided early offlist review feedback. Jon Simons (2): list-objects-filter: only parse sparse OID when 'have_git_dir' list-objects

[PATCH 1/2] list-objects-filter: only parse sparse OID when 'have_git_dir'

2019-08-28 Thread Jon Simons
Fix a bug in partial cloning with sparse filters by ensuring to check for 'have_git_dir' before attempting to resolve the sparse filter OID. Otherwise the client will trigger: BUG: refs.c:1851: attempting to get main_ref_store outside of repository when attempting to git clone with a sparse

[PATCH 2/2] list-objects-filter: handle unresolved sparse filter OID

2019-08-28 Thread Jon Simons
Handle a potential NULL 'sparse_oid_value' when attempting to load sparse filter exclusions by blob, to avoid segfaulting later during 'add_excludes_from_blob_to_list'. While here, uniquify the errors emitted to distinguish between the case that a given OID is NULL due to an earlier failure to res

Re: [PATCH v2] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Martin Ågren
Hiya, On Wed, 28 Aug 2019 at 21:15, Sergey Organov wrote: > > I was sort of expecting these to be listed in the order "--ff, --no-ff, > > --ff-only", and I see Sergey suggested the same ordering. The way your > > proposed text reads does make sense though... Would it read as well > > turning it o

Re: [PATCH v2] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Sergey Organov
Hi, Martin Ågren writes: [...] >> ++ >> +With --ff-only, resolve the merge as a fast-forward when possible >> +(when the merged branch contains the current branch in its history). >> +When not possible, refuse to merge and exit with a non-zero status. >> ++ >> +With --no-ff, create a merge com

Re: [RFC PATCH 0/5] Remove git-filter-branch from git.git; host it elsewhere

2019-08-28 Thread Sergey Organov
Hi Elijah, Elijah Newren writes: > Hi Sergey, > > On Wed, Aug 28, 2019 at 1:52 AM Sergey Organov wrote: >> >> Elijah Newren writes: >> >> > On Tue, Aug 27, 2019 at 1:43 AM Sergey Organov wrote: >> >> >> >> Eric Wong writes: >> >> >> >> >> >> [...] [...] >> > >> > Side note: Is the goal to

Re: [PATCH v2] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Martin Ågren
Hi Elijah, On Wed, 28 Aug 2019 at 17:52, Elijah Newren wrote: > ---ff:: > - When the merge resolves as a fast-forward, only update the branch > - pointer, without creating a merge commit. This is the default > - behavior. > - > +--ff-only:: > --no-ff:: > - Create a merge

Re: [RFC PATCH 0/5] Remove git-filter-branch from git.git; host it elsewhere

2019-08-28 Thread Elijah Newren
Hi Sergey, On Wed, Aug 28, 2019 at 1:52 AM Sergey Organov wrote: > > Elijah Newren writes: > > > On Tue, Aug 27, 2019 at 1:43 AM Sergey Organov wrote: > >> > >> Eric Wong writes: > >> > >> > >> [...] > >> > >> > AFAIK, filter-branch is not causing support headaches for any > >> > git developer

blame --ignore-rev - add place to specify defaults at repo level

2019-08-28 Thread Terry Davis
The new blame options (--ignore-rev, --ignore-revs-file) and config options (blame.markIgnoredLines, blame.markUnblamables, blame.ignoreRevsFile) are great, and much appreciated. However, for my primary use (one-time automated reformatting of an entire repository), there is still some friction pr

Re: [PATCH v2] grep: skip UTF8 checks explicitly

2019-08-28 Thread Carlo Arenas
FWIW, the changes in grep.h are IMHO optional and hadn't been really tested as I couldn't find a version of PCRE1 old enough to trigger it but I am hoping are simple enough to work. As in my original proposal, there is no test because this is going to (as documented) trigger undefined behaviour an

[PATCH] [PoC] A simpler find_unique_prefixes() implementation

2019-08-28 Thread SZEDER Gábor
Implement find_unique_prefixes() by sorting the prefix items lexicographically and then looking for unique prefixes in adjacent pairs. It's definitely shorter than the current hashmap-based implementation (101 vs 149 lines), subjectively easier to follow, and hopefully less buggy (some of the new

Re: [PATCH v3 07/11] Add a function to determine unique prefixes for a list of strings

2019-08-28 Thread SZEDER Gábor
On Tue, Aug 27, 2019 at 02:14:06PM +0200, Johannes Schindelin wrote: > Hi Gábor, > > On Sat, 24 Aug 2019, SZEDER Gábor wrote: > > > On Tue, Jul 16, 2019 at 07:58:42AM -0700, Slavica Djukic via GitGitGadget > > wrote: > > > In the `git add -i` command, we show unique prefixes of the commands and

Re: [PATCH 1/1] upload-pack: fix race condition in error messages

2019-08-28 Thread SZEDER Gábor
On Wed, Aug 28, 2019 at 11:39:44AM -0400, Jeff King wrote: > On Wed, Aug 28, 2019 at 10:54:12AM -0400, Jeff King wrote: > > > > Unfortunately, however, while running './t5516-fetch-push.sh -r 1,79 > > > --stress' to try to reproduce a failure caused by those mingled > > > messages, the same check

Re: [PATCH v4 1/1] rebase.c: make sure the active branch isn't moved when autostashing

2019-08-28 Thread Junio C Hamano
Junio C Hamano writes: > IIUC, the bug is twofold: > ... > - A message is given only when the above happens. When rebasing > ... >That "reset --hard" is done only to clean the index and the >working tree and talking about "HEAD is now..." is a bug in its >context. Actually, this "l

Re: [PATCH 2/3] merge: use refresh_and_write_cache

2019-08-28 Thread Martin Ågren
On Tue, 27 Aug 2019 at 12:15, Thomas Gummerer wrote: > struct lock_file lock = LOCK_INIT; > const char *head_arg = "HEAD"; > > - hold_locked_index(&lock, LOCK_DIE_ON_ERROR); > - refresh_cache(REFRESH_QUIET); > - if (write_locked_index(&the_index, &lock, > -

[PATCH v2] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Elijah Newren
As discovered on the mailing list, some of the descriptions of the ff-related options were unclear. Try to be more precise with what these options do. Signed-off-by: Elijah Newren --- Changes since v1: * Grouped much like --option/--no-option items are to make it clearer that these are rel

Re: [PATCH 1/3] factor out refresh_and_write_cache function

2019-08-28 Thread Martin Ågren
On Tue, 27 Aug 2019 at 12:14, Thomas Gummerer wrote: > > Getting the lock for the index, refreshing it and then writing it is a > pattern that happens more than once throughout the codebase. Factor > out the refresh_and_write_cache function from builtin/am.c to > read-cache.c, so it can be re-use

Re: [PATCH 1/1] upload-pack: fix race condition in error messages

2019-08-28 Thread Jeff King
On Wed, Aug 28, 2019 at 10:54:12AM -0400, Jeff King wrote: > > Unfortunately, however, while running './t5516-fetch-push.sh -r 1,79 > > --stress' to try to reproduce a failure caused by those mingled > > messages, the same check only failed for a different reason so far > > (both on Linux and macO

Re: [PATCH v3 01/11] Start to implement a built-in version of `git add --interactive`

2019-08-28 Thread Junio C Hamano
Johannes Schindelin writes: >> Ah, so "add.usebuiltin = interactive patch" can (eventually) choose >> to use the C code for both while "add.usebuiltin = interactive" >> would not use it for the patch mode, or something? Or even >> >> add.interactive.usebuiltin = yes > > This is what I had i

Re: [PATCH v4 1/1] rebase.c: make sure the active branch isn't moved when autostashing

2019-08-28 Thread Junio C Hamano
Johannes Schindelin writes: > FWIW I disagree with the decision to mingle a bug fix with a change of > behavior. Resetting to the correct OID is of course the bug fix. > Dropping the message is a change of behavior. In general I strongly advocate that a patch should fix one thing and one thing w

Re: Support for an interactive confirmation prompt when users can possibly lose their work like some UNIX commands

2019-08-28 Thread Duy Nguyen
On Wed, Aug 28, 2019 at 10:05 PM Jeff King wrote: > > > Note that there _are_ some commands which are not reversible: mostly > > > things that drop content from the working tree. So "git reset --hard" is > > > one, and "git clean" is another. There have been discussions and even > > > some patches

Re: What's cooking in git.git (Aug 2019, #06; Fri, 23)

2019-08-28 Thread Junio C Hamano
Carlo Arenas writes: > On Fri, Aug 23, 2019 at 6:16 PM Junio C Hamano wrote: >> >> * cb/pcre2-chartables-leakfix (2019-08-06) 3 commits >> - grep: avoid leak of chartables in PCRE2 >> - grep: make PCRE2 aware of custom allocator >> - grep: make PCRE1 aware of custom allocator >> >> WIP > > t

Re: RFC: Proposing git-filter-repo for inclusion in git.git

2019-08-28 Thread Junio C Hamano
Johannes Schindelin writes: > FWIW if anybody cares about my opinion: I would be totally fine with > integrating git-filter-repo into git.git, have it there for a major > version or two, then patch `git filter-branch` to spew out a deprecation > warning, and then remove that latter command a majo

Re: [PATCH v3 01/11] Start to implement a built-in version of `git add --interactive`

2019-08-28 Thread Johannes Schindelin
Hi Junio, On Tue, 27 Aug 2019, Junio C Hamano wrote: > Johannes Schindelin writes: > > > Besides, I really hope that this would be only temporary,... > > Oh, no question about it. This should be temporary knob. > > I still do worry about giving a bad example for others to copy. > People tend to

Re: Support for an interactive confirmation prompt when users can possibly lose their work like some UNIX commands

2019-08-28 Thread Jeff King
On Tue, Aug 27, 2019 at 10:42:03PM +, Vipul wrote: > Jeff King wrote: > > The usual philosophy in Git is not to bother the user with > > confirmations, but to allow recovery after a mistake. > > > > Well, always prompting for confirmation will be annoying for some people > specially who are

Re: [PATCH 04/11] hashmap_entry: detect improper initialization

2019-08-28 Thread Johannes Schindelin
Hi Junio, On Tue, 27 Aug 2019, Junio C Hamano wrote: > My plan is to have ew/hashmap topic for a few days while ejecting > the js/add-i topic which semantically conflicts with the changed way > hashmaps ought to be used temporarily, and when I have enough time > and concentration, try to see if I

Re: [PATCH 03/11] hashmap_entry_init takes "struct hashmap_entry *"

2019-08-28 Thread Johannes Schindelin
Hi Stolee, On Tue, 27 Aug 2019, Derrick Stolee wrote: > On 8/25/2019 10:43 PM, Eric Wong wrote: > > C compilers do type checking to make life easier for us. So > > rely on that and update all hashmap_entry_init callers to take > > "struct hashmap_entry *" to avoid future bugs while improving > >

Re: [BUG] You can't have single quote in your username

2019-08-28 Thread Jeff King
On Wed, Aug 28, 2019 at 02:33:15PM +, Giuseppe Crino' wrote: > On Mon, Aug 26, 2019 at 03:14:55PM -0400, Jeff King wrote: > > But we'd still need something at least for > > GECOS, where "Your Name" is common. > > As I understand this, those commas are *not* removed by > strbuf_addstr_with

[PATCH v2] grep: skip UTF8 checks explicitly

2019-08-28 Thread Carlo Marcelo Arenas Belón
18547aacf5 ("grep/pcre: support utf-8", 2016-06-25) that was released with git 2.10 added the PCRE_UTF8 flag to PCRE1 matching including a call to has_non_ascii() to try to avoid breakage if there was non-utf8 encoded content in the haystack. Usually PCRE is compiled with JIT support (even if is n

Re: [PATCH 1/1] upload-pack: fix race condition in error messages

2019-08-28 Thread Jeff King
On Wed, Aug 28, 2019 at 11:34:08AM +0200, SZEDER Gábor wrote: > On Tue, Aug 27, 2019 at 06:43:29PM -0700, Derrick Stolee via GitGitGadget > wrote: > > Test t5516-fetch-push.sh has a test 'deny fetch unreachable SHA1, > > allowtipsha1inwant=true' that checks stderr for a specific error > > string

Re: [BUG] You can't have single quote in your username

2019-08-28 Thread Giuseppe Crino'
On Mon, Aug 26, 2019 at 03:14:55PM -0400, Jeff King wrote: > But we'd still need something at least for > GECOS, where "Your Name" is common. As I understand this, those commas are *not* removed by strbuf_addstr_without_crud(). Instead they're skipped from /etc/pass -- see `ident.c/copy_gecos(

Re: [PATCH v4 1/1] rebase.c: make sure the active branch isn't moved when autostashing

2019-08-28 Thread Johannes Schindelin
Hi Ben, On Mon, 26 Aug 2019, Ben Wijen wrote: > Dscho's review got me thinking about the rationale behind the 'HEAD is now > at...' > message. > > A 'stash push' is followed by a 'reset -q' but since 'stash create autostash' > is > not, we must do it ourselves. I guess the legacy implementation

Re: How to build to debug with gdb?

2019-08-28 Thread Giuseppe Crino'
On Wed, Aug 28, 2019 at 11:00:46AM +, Giuseppe Crino' wrote: > Maybe I'm biased by my incompetence with Makefile's but since rebuilding > the project with `install` but different flags from the first make is > unusual this is worth mentioning to developers. Definitely *not* sarcastic

Re: [PATCH 1/1] git-p4: auto-delete named temporary file

2019-08-28 Thread Johannes Schindelin
Hi Junio, On Mon, 26 Aug 2019, Junio C Hamano wrote: > Funny that the patch is line-wrapped, which I do not recall ever > seeing in GGG-generated e-mails. Dscho, do you know if anything > funny is going on? Yes, this was me trying to re-send the patch via GMail's web UI because the first time G

Re: [PATCH v2 20/23] .gitignore: touch up the entries regarding Visual Studio

2019-08-28 Thread Johannes Schindelin
Hi Gábor, On Mon, 26 Aug 2019, SZEDER Gábor wrote: > On Sun, Aug 25, 2019 at 11:21:23PM +0100, Philip Oakley wrote: > > diff --git a/.gitignore b/.gitignore > > index e096e0a51c..e7bb15d301 100644 > > --- a/.gitignore > > +++ b/.gitignore > > @@ -230,6 +230,7 @@ > > *.ip

Re: [PATCH v5 2/2] am: reload .gitattributes after patching it

2019-08-28 Thread Johannes Schindelin
Hi brian, [chiming in from the peanut gallery; if my comments don't make any sense, please do feel free to completely ignore me.] On Sun, 25 Aug 2019, brian m. carlson wrote: > diff --git a/convert.c b/convert.c > index 94ff837649..0e6e9d2d75 100644 > --- a/convert.c > +++ b/convert.c > @@ -8,6

Re: RFC: Proposing git-filter-repo for inclusion in git.git

2019-08-28 Thread Johannes Schindelin
Hi Elijah, On Fri, 23 Aug 2019, Elijah Newren wrote: > On Thu, Aug 22, 2019 at 8:01 PM Eric Wong wrote: > > > > Elijah Newren wrote: > > > * Remove git-filter-branch from git.git. Mention in the release > > > notes where people can go to get it.[1] > > > > > > filter-branch is not merely a s

Re: How to build to debug with gdb?

2019-08-28 Thread Giuseppe Crino'
On Wed, Aug 28, 2019 at 12:32:17PM +0200, SZEDER Gábor wrote: > I don't think it's unusual at all that the 'install' target depends on > 'all'. A quick and incomprehensive survey of Makefiles from a few > open source projects that I happen to have lying around seems to > confirm this. > > What mi

Re: How to build to debug with gdb?

2019-08-28 Thread SZEDER Gábor
On Wed, Aug 28, 2019 at 08:15:57AM +, Giuseppe Crino' wrote: > On Tue, Aug 27, 2019 at 08:36:40PM +0200, SZEDER Gábor wrote: > > Try using the same build flags for the install, i.e.: > > > > make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g" install > > Yes, now it works thanks! > > On Tue

Re: git slow unless piped to cat

2019-08-28 Thread Uwe Kleine-König
Hello, On Tue, Aug 27, 2019 at 02:38:57PM -0700, Bryan Turner wrote: > On Tue, Aug 27, 2019 at 2:32 PM Uwe Kleine-König > wrote: > > > > On Tue, Aug 27, 2019 at 02:59:30PM -0400, Jeff King wrote: > > > On Tue, Aug 27, 2019 at 12:04:27PM +0200, Uwe Kleine-König wrote: > > > > > > to see the loose

Re: What's cooking in git.git (Aug 2019, #06; Fri, 23)

2019-08-28 Thread Carlo Arenas
On Fri, Aug 23, 2019 at 6:16 PM Junio C Hamano wrote: > > * cb/pcre2-chartables-leakfix (2019-08-06) 3 commits > - grep: avoid leak of chartables in PCRE2 > - grep: make PCRE2 aware of custom allocator > - grep: make PCRE1 aware of custom allocator > > WIP this was v3 and doesn't sufficiently

Re: [PATCH 1/1] upload-pack: fix race condition in error messages

2019-08-28 Thread SZEDER Gábor
On Tue, Aug 27, 2019 at 06:43:29PM -0700, Derrick Stolee via GitGitGadget wrote: > Test t5516-fetch-push.sh has a test 'deny fetch unreachable SHA1, > allowtipsha1inwant=true' that checks stderr for a specific error > string from the remote. In some build environments the error sent > over the remo

Re: [PATCH 10/11] introduce container_of macro

2019-08-28 Thread Phillip Wood
On 27/08/2019 15:49, Derrick Stolee wrote: On 8/25/2019 10:43 PM, Eric Wong wrote: This macro is popular within the Linux kernel for supporting intrusive data structures such as linked lists, red-black trees, and chained hash tables while allowing the compiler to do type checking. I intend to u

Re: [PATCH] merge-options.txt: clarify meaning of various ff-related options

2019-08-28 Thread Sergey Organov
Elijah Newren writes: > As discovered on the mailing list, some of the descriptions of the > ff-related options were unclear. Try to be more precise with what these > options do. > > Signed-off-by: Elijah Newren > --- > I noticed this patch sitting around in one of my branches, and noticed it >

Re: [PATCH 04/11] hashmap_entry: detect improper initialization

2019-08-28 Thread Phillip Wood
Hi Eric On 27/08/2019 10:49, Eric Wong wrote: Johannes Schindelin wrote: Hi Eric, On Mon, 26 Aug 2019, Eric Wong wrote: By renaming the "hash" field to "_hash", it's easy to spot improper initialization of hashmap_entry structs which can leave "hashmap_entry.next" uninitialized. Would you

Re: [RFC PATCH 0/5] Remove git-filter-branch from git.git; host it elsewhere

2019-08-28 Thread Sergey Organov
Elijah Newren writes: > On Tue, Aug 27, 2019 at 1:43 AM Sergey Organov wrote: >> >> Eric Wong writes: >> >> >> [...] >> >> > AFAIK, filter-branch is not causing support headaches for any >> > git developers today. With so many commands in git, it's >> > unlikely newbies will ever get around to

git-p4, and python2 EOL

2019-08-28 Thread Luke Diamand
We're coming up on when Python2 is end-of-lifed - we have until January 1st 2020. git-p4 uses python2, and doesn't work under python3 at all. The problem is the conversions between Python3 unicode strings and git (utf-8) and p4 (utf-8, except when it isn't). I had a go at fixing this here: http

Re: [PATCH v2 1/1] git-p4: auto-delete named temporary file

2019-08-28 Thread Luke Diamand
On Tue, 27 Aug 2019 at 23:31, Junio C Hamano wrote: > > Andrey Mazo writes: > > > From: "Philip.McGraw" > > > > Avoid double-open exceptions on Windows platform when > > calculating for lfs compressed size threshold > > (git-p4.largeFileCompressedThreshold) comparisons. > > > > Take new approach

Re: How to build to debug with gdb?

2019-08-28 Thread Giuseppe Crino'
On Tue, Aug 27, 2019 at 08:36:40PM +0200, SZEDER Gábor wrote: > Try using the same build flags for the install, i.e.: > > make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g" install Yes, now it works thanks! On Tue, Aug 27, 2019 at 08:34:23PM +0200, Johannes Sixt wrote: > That is because the co