Contributor Summit Topics and Logistics

2019-01-21 Thread Jeff King
The Git Merge Contributor Summit is a little over a week away. If you're interested in coming but haven't signed up, please do! We have a few spaces available still. Details are in the previous announcement: http://public-inbox.org/git/20181206094805.ga1...@sigill.intra.peff.net/ There's no set

Re: Potential bug in pack-objects.c

2019-01-21 Thread Jeff King
On Mon, Jan 21, 2019 at 10:10:16PM +, Alex Netkachov wrote: > On the location builtin/pack-objects.c:1996 the code tries to set > read_lock (pthread_mutex_lock(&read_mutex)) and fails. I suspect that > read_mutex is not initialised yet. It is initialised in > init_threaded_search, which is cal

Re: [PATCH v2] pack-objects: Use packing_data lock instead of read_mutex

2019-01-21 Thread Jeff King
On Mon, Jan 21, 2019 at 05:02:33PM +0700, Duy Nguyen wrote: > > As I mentioned in the prior thread I think that it will be simpler > > to simply use the existing lock in packing_data instead of moving > > read_mutex. I can go back to simply moving read_mutex to the > > packing_data struct if that

Re: [PATCH/RFC] fsck: complain when .gitignore and .gitattributes are symlinks

2019-01-21 Thread Jeff King
On Fri, Jan 18, 2019 at 01:41:08AM +, Ramsay Jones wrote: > I don't do this "from time to time", but *every* build on all > platforms! :-D > > As I have mentioned before, I run the script on 'master', 'next' > and 'pu', but I don't look at the results for 'master', I simply > look at the diff

Re: [PATCH] attr: do not mark queried macros as unset

2019-01-21 Thread Jeff King
On Mon, Jan 21, 2019 at 05:05:56PM +0700, Duy Nguyen wrote: > > It should be possible to salvage this optimization, but let's start with > > just removing the remnants. It hasn't been doing anything (except > > creating bugs) since 60a12722ac, and nobody seems to have noticed the > > performance r

Re: [PATCH] attr: do not mark queried macros as unset

2019-01-21 Thread Jeff King
On Fri, Jan 18, 2019 at 02:19:55PM -0800, Stefan Beller wrote: > > I dunno. This is why I submitted the initial patch as the simplest fix. ;) > > > > The first patch is > Reviewed-by: Stefan Beller Thanks! > Diffing across both patches, this seems to be the relevant part: > [...] > > ---8<---

Re: [PATCH v2 1/3] Move init_skiplist() outside of fsck

2019-01-21 Thread Jeff King
On Fri, Jan 18, 2019 at 11:26:29PM +0100, Ævar Arnfjörð Bjarmason wrote: > I stand corrected, I thought these still needed to be updated to parse > anything that wasn't 40 chars, since I hadn't seen anything about these > formats in the hash transition document. > > So fair enough, let's change t

Re: [PATCH v2 2/3] setup: do not use invalid `repository_format`

2019-01-21 Thread Jeff King
On Thu, Jan 17, 2019 at 07:31:14AM +0100, Martin Ågren wrote: > > I also get why read_repository_format() doing this in patch 3 would be a > > problem: > > > > + if (format->version == -1) { > > + clear_repository_format(format); > > + format->version = -1;

Re: [PATCH v3 5/5] Add `human` date format tests.

2019-01-21 Thread Stephen & Linda Smith
On Monday, January 21, 2019 8:04:29 AM MST SZEDER Gábor wrote: > Note that the relative time output is translated, see all the Q_() > calls in show_date_relative(). Consequently, these tests fail in > GETTEXT_POISON builds. Please use 'test_i18ncmp' instead. > > Furthermore, I think it would hel

[PATCH v2 0/3] nd/diff-parseopt fixups

2019-01-21 Thread Nguyễn Thái Ngọc Duy
Resend with s-o-b. Oops. Nguyễn Thái Ngọc Duy (3): Revert "parse-options: allow keep-unknown + stop-at-non-opt combination" diff.c: delete unused functions diff.c: simplify diff_opt_break_rewrites() diff.c | 74 ++--- parse-options.c

[PATCH v2 2/3] diff.c: delete unused functions

2019-01-21 Thread Nguyễn Thái Ngọc Duy
After the parseopt conversion, a few functions are no longer needed. Delete them. Noticed-by: SZEDER Gábor Noticed-by: Johannes Schindelin Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 65 -- 1 file changed, 65 deletions(-) diff --git

[PATCH v2 3/3] diff.c: simplify diff_opt_break_rewrites()

2019-01-21 Thread Nguyễn Thái Ngọc Duy
Helped-by: Johannes Schindelin Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/diff.c b/diff.c index da5ba835ce..2351571251 100644 --- a/diff.c +++ b/diff.c @@ -4814,20 +4814,15 @@ static int diff_opt_break_rewrites(cons

[PATCH v2 1/3] Revert "parse-options: allow keep-unknown + stop-at-non-opt combination"

2019-01-21 Thread Nguyễn Thái Ngọc Duy
This reverts commit a85e5a01080e35da0f94bf98f5f334c64e214ce3, which is a revert of 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together - 2009-03-09). As described in 0d260f9a09, this option combination is tricky to get right and should be prevented unless you

[PATCH 3/3] diff.c: simplify diff_opt_break_rewrites()

2019-01-21 Thread Nguyễn Thái Ngọc Duy
Helped-by: Johannes Schindelin --- diff.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/diff.c b/diff.c index da5ba835ce..2351571251 100644 --- a/diff.c +++ b/diff.c @@ -4814,20 +4814,15 @@ static int diff_opt_break_rewrites(const struct option *opt,

[PATCH 1/3] Revert "parse-options: allow keep-unknown + stop-at-non-opt combination"

2019-01-21 Thread Nguyễn Thái Ngọc Duy
This reverts commit a85e5a01080e35da0f94bf98f5f334c64e214ce3, which is a revert of 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together - 2009-03-09). As described in 0d260f9a09, this option combination is tricky to get right and should be prevented unless you

[PATCH 2/3] diff.c: delete unused functions

2019-01-21 Thread Nguyễn Thái Ngọc Duy
After the parseopt conversion, a few functions are no longer needed. Delete them. Noticed-by: SZEDER Gábor Noticed-by: Johannes Schindelin --- diff.c | 65 -- 1 file changed, 65 deletions(-) diff --git a/diff.c b/diff.c index 747e691190..

[PATCH 0/3] nd/diff-parseopt fixups

2019-01-21 Thread Nguyễn Thái Ngọc Duy
Let me see if I could just fix up this series on top like this. Failing this, I'll break it down and resend in small chunks. This redoes a85e5a0108 (parse-options: allow keep-unknown + stop-at-non-opt combination - 2019-01-17), deletes dead functions and rewrites b9b760ed1c (diff.c: convert -B|--b

Evolve status

2019-01-21 Thread Stefan Xenos
I've just sent my current set of stable patches for the evolve command to the list. The code should be stable, but there's follow-up stuff I still want to do: - Add more tests for the new code. - Make better use of the memory pool in change-table.c (ideally, all the memory it uses should come from

[PATCH 8/8] evolve: Add the git change list command

2019-01-21 Thread sxenos
From: Stefan Xenos This command lists the ongoing changes from the refs/metas namespace. --- builtin/change.c | 53 1 file changed, 53 insertions(+) diff --git a/builtin/change.c b/builtin/change.c index ff7eb3b113..b63fe98665 100644 --- a/builti

[PATCH 2/8] evolve: Implement oid_array_contains_nondestructive

2019-01-21 Thread sxenos
From: Stefan Xenos Implement a "contains_nondestructive" function for oid_array that won't sort the array if it is unsorted. This can be used to test containment in the rare situations where the array order matters. The function has intentionally been given a name that is more cumbersome than th

[PATCH 7/8] evolve: Implement the git change update command

2019-01-21 Thread sxenos
From: Stefan Xenos Implement the git change update command, which are sufficient for constructing change graphs. For example, to create a new change (a stable name) that refers to HEAD: git change update -c HEAD To record a rebase or amend in the change graph: git change update -c -r To re

[PATCH 3/8] evlove: Add the metas namespace to ref-filter

2019-01-21 Thread sxenos
From: Stefan Xenos The metas namespace will contain refs for changes in progress. Add support for searching this namespace. --- ref-filter.c | 8 ++-- ref-filter.h | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ref-filter.c b/ref-filter.c index 422a9c9ae3..4d7bd068

[PATCH 6/8] evolve: Add support for writing metacommits

2019-01-21 Thread sxenos
From: Stefan Xenos metacommit.c supports the creation of metacommits and adds the API needed to create and update changes. Create the "modify_change" function that can be called from modification commands like "rebase" and "git amend" to record obsolescences in the change graph. Create the "rec

[PATCH 5/8] evolve: Add the change-table structure

2019-01-21 Thread sxenos
From: Stefan Xenos A change table stores a list of changes, and supports efficient lookup from a commit hash to the list of changes that reference that commit directly. It can be used to look up content commits or metacommits at the head of a change, but does not support lookup of commits refere

[PATCH 4/8] evolve: Add support for parsing metacommits

2019-01-21 Thread sxenos
From: Stefan Xenos This patch adds the get_metacommit_content method, which can classify commits as either metacommits or normal commits, determine whether they are abandoned, and extract the content commit's object id from the metacommit. --- Makefile| 1 + metacommit-parser.c | 87

[PATCH 1/8] technical doc: add a design doc for the evolve command

2019-01-21 Thread sxenos
From: Stefan Xenos This document describes what a change graph for git would look like, the behavior of the evolve command, and the changes planned for other commands. Signed-off-by: Stefan Xenos --- Documentation/technical/evolve.txt | 1034 1 file changed, 1034 i

Potential bug in pack-objects.c

2019-01-21 Thread Alex Netkachov
Hi, The most recent version of git crashes on gc command on my repository. I've tracked it down to the segmentation fault in pack-objects.c while running this command in the debugger: gdb --args /usr/src/git/git-pack-objects.exe --local --delta-base-offset .git/objects/pack/.tmp-14368-pack --keep-

Re: Missing patch?

2019-01-21 Thread Stefan Xenos
I'm guessing the patch was just too big. I'll break it up and submit it in bits. - Stefan On Mon, Jan 21, 2019 at 12:21 PM Eric Wong wrote: > > Stefan Xenos wrote: > > I've tried to upload a patch twice but it doesn't seem to be showing > > up in my mailbox or in the mailing list archives. Th

Re: [PATCH v4 0/8] Reimplement rebase --merge via interactive machinery

2019-01-21 Thread Elijah Newren
Hi Dscho, On Mon, Jan 21, 2019 at 1:01 PM Johannes Schindelin wrote: > > Hi Elijah, > > On Mon, 21 Jan 2019, Johannes Schindelin wrote: > > > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > > > Differences since v3 (full range-diff below): > > > - Fixed the redundant "fatal: error:" error messa

Re: [PATCH v4 0/8] Reimplement rebase --merge via interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Junio, On Fri, 18 Jan 2019, Junio C Hamano wrote: > Johannes Schindelin writes: > > > On Fri, 18 Jan 2019, Junio C Hamano wrote: > > > >> Johannes Schindelin writes: > >> > >> > I am about to submit a new iteration of my patch series, would it > >> > be too much trouble for you to rebase o

Re: [PATCH v4 0/8] Reimplement rebase --merge via interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Mon, 21 Jan 2019, Johannes Schindelin wrote: > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > Differences since v3 (full range-diff below): > > - Fixed the redundant "fatal: error:" error message prefixes, as pointed > > out by Duy > > - Rebased on 2.20.0 > > - Fixed

testing some changes to a public-inbox .onion

2019-01-21 Thread Eric Wong
WITHOUT reading m...@public-inbox.org, maybe some of you can spot some differences :) You'll need to use Tor to access .onions, of course: http://hjrcffqmbrq6wope.onion/git/ Tested with Netsurf and dillo. People with machines powerful enough to run Firefox (or Tor Browser Bundle) can us

Re: pw/add-p-select, was Re: What's cooking in git.git (Dec 2018, #01; Sun, 9)

2019-01-21 Thread Johannes Schindelin
Hi Phillip, On Tue, 11 Dec 2018, Phillip Wood wrote: > On 11/12/2018 09:56, Johannes Schindelin wrote: > > > On Mon, 10 Dec 2018, Phillip Wood wrote: > > > > > On 09/12/2018 20:31, Johannes Schindelin wrote: > > > > > > > I could imagine, however, that it would make sense for `git add > > > >

Re: Missing patch?

2019-01-21 Thread Eric Wong
Stefan Xenos wrote: > I've tried to upload a patch twice but it doesn't seem to be showing > up in my mailbox or in the mailing list archives. The patch title was > "[RFC PATCH] evolve: Implement the git change command". > > Has anyone seen it? Is there a reason the mailing list would reject a pa

Missing patch?

2019-01-21 Thread Stefan Xenos
I've tried to upload a patch twice but it doesn't seem to be showing up in my mailbox or in the mailing list archives. The patch title was "[RFC PATCH] evolve: Implement the git change command". Has anyone seen it? Is there a reason the mailing list would reject a patch? - Stefan

[PATCH v2 2/2] checkout: fix regression in checkout -b on intitial checkout

2019-01-21 Thread Ben Peart
From: Ben Peart When doing a 'checkout -b' do a full checkout including updating the working tree when doing the initial checkout. This fixes the regression in behavior caused by fa655d8411 (checkout: optimize "git checkout -b ", 2018-08-16) Signed-off-by: Ben Peart --- builtin/checkout.c

[PATCH v2 0/2] Fix regression in checkout -b

2019-01-21 Thread Ben Peart
From: Ben Peart The optimized `checkout -b` doesn�t typically create/update the index and working directory. Add a new test to detect the case when the call to `checkout -b` is the first call after doing a `clone --no-checkout` and no index exists. In this specific case, well now make the call

[PATCH v2 1/2] checkout: add test to demonstrate regression with checkout -b on initial commit

2019-01-21 Thread Ben Peart
From: Ben Peart Commit fa655d8411 (checkout: optimize "git checkout -b ", 2018-08-16) introduced an unintentional change in behavior for 'checkout -b' after doing 'clone --no-checkout'. Add a test to demonstrate the changed behavior to be used in a later patch to verify the fix. Signed-off-by:

Re: [RFC PATCH 3/3] git-rebase.sh: make git-rebase--interactive the default

2019-01-21 Thread Elijah Newren
Hi Dscho, On Mon, Jan 21, 2019 at 7:56 AM Johannes Schindelin wrote: > > Hi Elijah, > > while looking for the patches I promised to review much earlier, I > realized that I never answered to this, even older mail. Sorry about that. > > [On a positive note: it only has been, what, exactly 7 months

Re: [PATCH v4 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Mon, 21 Jan 2019, Johannes Schindelin wrote: > Maybe, just maybe, if you submit another iteration (and only if), could > you add a little paragraph for future Dscho to understand that this > clean-up was slipped in? Oh wow. I guess I should learn how to read. The last paragraph say

Re: [PATCH v4 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Mon, 21 Jan 2019, Elijah Newren wrote: > On Mon, Jan 21, 2019 at 8:10 AM Johannes Schindelin > wrote: > > > > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > > > While 'quiet' and 'interactive' may sound like antonyms, the interactive > > > machinery actually has logic that impleme

Re: [PATCH v4 4/8] am, rebase--merge: do not overlook --skip'ed commits with post-rewrite

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Mon, 21 Jan 2019, Elijah Newren wrote: > On Mon, Jan 21, 2019 at 8:07 AM Johannes Schindelin > wrote: > > > > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > > > The post-rewrite hook is supposed to be invoked for each rewritten > > > commit. The fact that a commit was selected an

Re: [PATCH v4 4/8] am, rebase--merge: do not overlook --skip'ed commits with post-rewrite

2019-01-21 Thread Elijah Newren
Hi Dscho, On Mon, Jan 21, 2019 at 8:07 AM Johannes Schindelin wrote: > > Hi, > > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > The post-rewrite hook is supposed to be invoked for each rewritten > > commit. The fact that a commit was selected and processed by the rebase > > operation (even thou

Re: [PATCH v4 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-01-21 Thread Elijah Newren
Hi Dscho, On Mon, Jan 21, 2019 at 8:10 AM Johannes Schindelin wrote: > > Hi Elijah, > > On Tue, 11 Dec 2018, Elijah Newren wrote: > > > While 'quiet' and 'interactive' may sound like antonyms, the interactive > > machinery actually has logic that implements several > > interactive_rebase=implied

Re: [PATCH v4 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Tue, 11 Dec 2018, Elijah Newren wrote: > While 'quiet' and 'interactive' may sound like antonyms, the interactive > machinery actually has logic that implements several > interactive_rebase=implied cases (--exec, --keep-empty, --rebase-merges) > which won't pop up an editor. The re

Re: [PATCH v4 4/8] am, rebase--merge: do not overlook --skip'ed commits with post-rewrite

2019-01-21 Thread Johannes Schindelin
Hi, On Tue, 11 Dec 2018, Elijah Newren wrote: > The post-rewrite hook is supposed to be invoked for each rewritten > commit. The fact that a commit was selected and processed by the rebase > operation (even though when we hit an error a user said it had no more > useful changes), suggests we sho

Re: [PATCH v4 0/8] Reimplement rebase --merge via interactive machinery

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Tue, 11 Dec 2018, Elijah Newren wrote: > Differences since v3 (full range-diff below): > - Fixed the redundant "fatal: error:" error message prefixes, as pointed > out by Duy > - Rebased on 2.20.0 - Fixed the "comptable" tyop This, and the range-diff, look reasonable t

Re: [RFC PATCH 3/3] git-rebase.sh: make git-rebase--interactive the default

2019-01-21 Thread Johannes Schindelin
Hi Elijah, while looking for the patches I promised to review much earlier, I realized that I never answered to this, even older mail. Sorry about that. [On a positive note: it only has been, what, exactly 7 months since you sent it. My record is, I believe, somewhat around 5 years before I respo

Re: What's cooking in git.git (Jan 2019, #03; Fri, 18)

2019-01-21 Thread Johannes Schindelin
Hi Elijah, On Fri, 18 Jan 2019, Elijah Newren wrote: > On Fri, Jan 18, 2019 at 3:22 PM Junio C Hamano wrote: > > * en/rebase-merge-on-sequencer (2019-01-07) 8 commits > > - rebase: implement --merge via the interactive machinery > > - rebase: define linearization ordering and enforce it > > -

Re: [PATCH 1/1] stash: fix segmentation fault when files were added with intent

2019-01-21 Thread Johannes Schindelin
Hi Junio, On Fri, 18 Jan 2019, Junio C Hamano wrote: > "Matthew Kraai via GitGitGadget" writes: > > > From: Matthew Kraai > > > > After `git add -N `, the index is in a special state. A state for > > which the built-in stash was not prepared, as it failed to initialize > > the `rev` structure

[PATCH 0/1] One more fix related to TEST_GIT_INSTALLED

2019-01-21 Thread Johannes Schindelin via GitGitGadget
This fix should have gone into https://github.com/gitgitgadget/git/pull/73 (which was submitted as https://public-inbox.org/git/pull.73.v2.git.gitgitgad...@gmail.com and was integrated into master via 2488849c7e76 (Merge branch 'js/test-git-installed', 2018-11-19)). Ben Peart pointed out that I h

[PATCH 1/1] tests: explicitly use `test-tool.exe` on Windows

2019-01-21 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin In 8abfdf44c882 (tests: explicitly use `git.exe` on Windows, 2018-11-14), we made sure to use the `.exe` file extension when using an absolute path to `git.exe`, to avoid getting confused with a file or directory in the same place that lacks said file extension. For the

Re: [PATCH v3 5/5] Add `human` date format tests.

2019-01-21 Thread SZEDER Gábor
On Sun, Jan 20, 2019 at 10:16:46PM -0700, Stephen P. Smith wrote: > When using `human` several fields are suppressed depending on the time > difference between the reference date and the local computer date. In > cases where the difference is less than a year, the year field is > supppressed. If th

Re: [PATCH v4 03/16] sequencer: remove the 'arg' field from todo_item

2019-01-21 Thread Phillip Wood
Hi Alban I think this is a good change, I just wonder if it would be better to have an accessor function to get the arg pointer from a todo list item see below On 29/12/2018 16:04, Alban Gruin wrote: The 'arg' field of todo_item used to store the address of the first byte of the parameter of

RE: git commits unstaged files

2019-01-21 Thread Johannes Schindelin
Hi Beenish, On Fri, 18 Jan 2019, Khurshid, Beenish wrote: > Thanks so much for your response! > > As I went down the path of trying to prove the problem via an MCVE, and found > that the problem was not reproducing as I was expecting, I found out that one > of the pre-commit hooks had a bug fo

Draft of Git Rev News edition 47

2019-01-21 Thread Christian Couder
Hi everyone! A draft of a new Git Rev News edition is available here: https://github.com/git/git.github.io/blob/master/rev_news/drafts/edition-47.md Everyone is welcome to contribute in any section either by editing the above page on GitHub and sending a pull request, or by commenting on this

checkout with given mtime

2019-01-21 Thread Daniel Fanjul
Hi all, When the mtimes of my tracked files are updated during usual git commands some other tools that depend on them have trouble. So I restore their mtimes for these other tools and then git ends rereading contents of files that have not changed. I would like to improve this. Is there a way to

Re: [PATCH 63/76] diff.c: convert -O

2019-01-21 Thread Johannes Schindelin
Hi Duy, On Thu, 17 Jan 2019, Nguyễn Thái Ngọc Duy wrote: > diff --git a/diff.c b/diff.c > index ae993f5551..4e004a2195 100644 > --- a/diff.c > +++ b/diff.c > @@ -5401,6 +5401,8 @@ static void prep_parse_options(struct diff_options > *options) > OPT_BIT_F(0, "pickaxe-regex", &option

Re: [PATCH 28/76] diff.c: convert -B|--break-rewrites

2019-01-21 Thread Johannes Schindelin
Hi Duy, On Thu, 17 Jan 2019, Nguyễn Thái Ngọc Duy wrote: > +static int diff_opt_break_rewrites(const struct option *opt, > +const char *arg, int unset) > +{ > + int *break_opt = opt->value; > + int opt1, opt2; > + > + BUG_ON_OPT_NEG(unset); > + if (

Re: [PATCH v3 7/7] add--interactive.perl: use add--helper --show-help for help_cmd

2019-01-21 Thread Slavica Djukic
Hello Ævar, thanks for taking time and making review. On 21-Jan-19 10:59 AM, Ævar Arnfjörð Bjarmason wrote: On Mon, Jan 21 2019, Slavica Djukic via GitGitGadget wrote: From: Slavica Djukic Change help_cmd sub in git-add--interactive.perl to use show-help command from builtin add--helper. S

Re: [PATCH] attr: do not mark queried macros as unset

2019-01-21 Thread Duy Nguyen
On Sat, Jan 19, 2019 at 4:35 AM Jeff King wrote: > > On Fri, Jan 18, 2019 at 11:58:01AM -0500, Jeff King wrote: > > > Now, on to the actual bug. The simplest reproduction is: > > > > (echo "[attr]foo bar"; echo "* foo") >.gitattributes > > git check-attr foo file > > Actually, even simpler is

Re: [PATCH v2] pack-objects: Use packing_data lock instead of read_mutex

2019-01-21 Thread Duy Nguyen
On Sat, Jan 19, 2019 at 10:45 PM Patrick Hogg wrote: > > ac77d0c37 ("pack-objects: shrink size field in struct object_entry", > 2018-04-14) added an extra usage of read_lock/read_unlock in the newly > introduced oe_get_size_slow for thread safety in parallel calls to > try_delta(). Unfortunately o

Re: [PATCH v3 7/7] add--interactive.perl: use add--helper --show-help for help_cmd

2019-01-21 Thread Ævar Arnfjörð Bjarmason
On Mon, Jan 21 2019, Slavica Djukic via GitGitGadget wrote: > From: Slavica Djukic > > Change help_cmd sub in git-add--interactive.perl to use > show-help command from builtin add--helper. > > Signed-off-by: Slavica Djukic > --- > git-add--interactive.perl | 11 +-- > 1 file changed,

[PATCH v3 2/7] add--helper: create builtin helper for interactive add

2019-01-21 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Create a builtin helper for git-add--interactive, which right now is not able to do anything. This is the first step in an effort to convert git-add--interactive.perl to a C builtin, in search for better portability, expressibility and performance (specially on non-POSIX sy

[PATCH v3 5/7] add-interactive.c: implement show-help command

2019-01-21 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic Implement show-help command in add-interactive.c and use it in builtin add--helper.c. Use command name "show-help" instead of "help": add--helper is builtin, hence add--helper --help would be intercepted by handle_builtin and re-routed to the help command, without ever calli

[PATCH v3 3/7] add-interactive.c: implement status command

2019-01-21 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Add new files: add-interactive.c and add-interactive.h, which will be used for implementing "application logic" of git add -i, whereas add--helper.c will be used mostly for parsing the command line. We're a bit lax with the command-line parsing, as the command is intended to

[PATCH v3 7/7] add--interactive.perl: use add--helper --show-help for help_cmd

2019-01-21 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic Change help_cmd sub in git-add--interactive.perl to use show-help command from builtin add--helper. Signed-off-by: Slavica Djukic --- git-add--interactive.perl | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/git-add--interactive.perl b/git-a

[PATCH v3 6/7] t3701-add-interactive: test add_i_show_help()

2019-01-21 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic Add test to t3701-add-interactive to verify that add_i_show_help() outputs expected content. Also, add it before changing git-add--interactive.perl's help_cmd to demonstrate that there are no changes introduced by the conversion to C. Prefix git add -i call with GIT_PAGER_IN_

[PATCH v3 4/7] add--interactive.perl: use add--helper --status for status_cmd

2019-01-21 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Call the newly introduced add--helper builtin on status_cmd() instead of relying on add--interactive's Perl functions to build print the numstat. Signed-off-by: Daniel Ferreira Signed-off-by: Slavica Djukic --- git-add--interactive.perl | 4 +--- 1 file changed, 1 insert

[PATCH v3 0/7] Turn git add-i into built-in

2019-01-21 Thread Slavica Đukić via GitGitGadget
This is the first version of a patch series to start porting git-add--interactive from Perl to C. Daniel Ferreira's patch series used as a head start: https://public-inbox.org/git/1494907234-28903-1-git-send-email-bnm...@gmail.com/t/#u Changes since v2: * fixed translation misuse and avoided com

[PATCH v3 1/7] diff: export diffstat interface

2019-01-21 Thread Daniel Ferreira via GitGitGadget
From: Daniel Ferreira Make the diffstat interface (namely, the diffstat_t struct and compute_diffstat) no longer be internal to diff.c and allow it to be used by other parts of git. This is helpful for code that may want to easily extract information from files using the diff machinery, while fl

Re: protocol v2: More data transmitted between client and server since v2.20.0

2019-01-21 Thread Kaartic Sivaraam
Oops. Small correction in the message. On Mon, 2019-01-21 at 03:00 +0530, Kaartic Sivaraam wrote: > .. The commands given there worked as mentioned in the blog > until Git v2.18.1. But when I run the same commands using Git v2.19.2 That's Git v2.20.0 not Git v2.19.2. > or the one I built from

protocol v2: More data transmitted between client and server since v2.20.0

2019-01-21 Thread Kaartic Sivaraam
Hi all, I recently came across a blog[1] about how protocol v2 speeds up the transfer between the client and the server. It states that the amount of data transmitted between the client and the server is less when using the protocol v2. To demonstrate the difference between v0 and v2 two commands

[PATCH] git-submodule.sh: shorten submodule SHA-1s using rev-parse

2019-01-21 Thread Sven van Haastregt
Until now, `git submodule summary` was always emitting 7-character SHA-1s that have a higher chance of being ambiguous for larger repositories. Use `git rev-parse --short` instead, which will determine suitable short SHA-1 lengths. Signed-off-by: Sven van Haastregt --- git-submodule.sh | 4 ++--