Re: [PATCH] fsckObjects tests: show how v2.17.1 can exploit downstream

2018-05-31 Thread Jeff King
On Fri, Jun 01, 2018 at 10:42:00AM +0900, Junio C Hamano wrote: > Jeff King writes: > > > I haven't tested it, but I suspect that doing multiple fetches could > > result in passing bad objects through a fetch.fsckObjects filter. > > Because the objects aren't quarantined on fetch, and because >

Re: [RFC PATCH 3/4] color.ui config: don't die on unknown values

2018-05-31 Thread Jeff King
On Thu, May 31, 2018 at 09:17:41AM +0200, Ævar Arnfjörð Bjarmason wrote: > > Ævar Arnfjörð Bjarmason writes: > > > >> Before this change git will die on any unknown color.ui values: > >> > >> $ git -c color.ui=doesnotexist show > >> fatal: bad numeric config value 'doesnotexist' for

Re: [PATCH 1/4] config doc: move color.ui documentation to one place

2018-05-31 Thread Jeff King
On Thu, May 31, 2018 at 09:09:58AM +0200, Ævar Arnfjörð Bjarmason wrote: > >> Instead let's briefly describe what each variable is for, and then > >> copy/paste a new boilerplate saying that this variable takes the exact > >> same values as color.ui, and if it's unset it'll fallback to whatever >

Re: [RFC PATCH 4/4] color.ui config: add "isatty" setting

2018-05-31 Thread Jeff King
On Thu, May 31, 2018 at 09:01:49AM +0200, Ævar Arnfjörð Bjarmason wrote: > > Is there some case where a pager can only handle color if _it's_ output > > is going to a tty, and otherwise not? > > Maybe I'm missing something but how is that something we can deal with? > We just: > > 1. use

[PATCH] f4b04cf65 ("git-subtree: I suggest to add following lines into commit message", 2018-05-31)

2018-05-31 Thread kx
From f4b04cf65c4b220c8127ed2692c057fab76392a9 Mon Sep 17 00:00:00 2001 From: kx Date: Thu, 31 May 2018 22:47:49 +0300 Subject: [PATCH 1/3] I suggest to add following lines into commit message created by 'git subtree add' command: git-subtree-repo: https://github.com/.../remote.git

Re: [PATCH v4 8/9] checkout: add advice for ambiguous "checkout "

2018-05-31 Thread Junio C Hamano
Junio C Hamano writes: > Ævar Arnfjörð Bjarmason writes: > >> @@ -1269,6 +1270,16 @@ int cmd_checkout(int argc, const char **argv, const >> char *prefix) >> if (opts.patch_mode || opts.pathspec.nr) { >> int ret = checkout_paths(, new_branch_info.name, >>

[PATCH] t9104: kosherly remove remote refs

2018-05-31 Thread Christian Couder
As there are plans to implement other ref storage systems, let's use a way to remove remote refs that does not depend on refs being files. This makes it clear to readers that this test does not depend on which ref backend is used. Suggested-by: Michael Haggerty Helped-by: Jeff King

Re: [PATCH v4 8/9] checkout: add advice for ambiguous "checkout "

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > @@ -1269,6 +1270,16 @@ int cmd_checkout(int argc, const char **argv, const > char *prefix) > if (opts.patch_mode || opts.pathspec.nr) { > int ret = checkout_paths(, new_branch_info.name, >

Re: [PATCH v4 4/9] checkout.[ch]: introduce an *_INIT macro

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Add an *_INIT macro for the tracking_name_data similar to what exists > elsewhere in the codebase, e.g. OID_ARRAY_INIT in sha1-array.h. This > will make it more idiomatic in later changes to add more fields to the > struct & its initialization macro. Makes

Re: [PATCH v4 1/9] checkout tests: index should be clean after dwim checkout

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Assert that whenever there's a DWIM checkout that the index should be > clean afterwards, in addition to the correct branch being checked-out. > ... > So let's amend the tests (mostly added in) 399e4a1c56 ("t2024: Add > tests verifying current DWIM behavior of

Re: [PATCH] fetch: do not pass ref-prefixes for fetch by exact SHA1

2018-05-31 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> This patch adds a test to check this behavior that notices another >> behavior difference between protocol v0 and v2 in the process. Add a >> NEEDSWORK comment to clear it up. > > Thanks. > > I wonder if there is a more effective way to smoke

Re: [PATCH 5/5] refspec.c: use rhs in parse_refspec instead of potentially uninitialized item->dst

2018-05-31 Thread Junio C Hamano
Junio C Hamano writes: > Perhaps a better fisx is to explicitly assign NULL to item->dst when > we see there is no right-hand-side. -- >8 -- Subject: [PATCH] refspec-api: avoid uninitialized field in refspec item When parse_refspec() function was created at 3eec3700 ("refspec: factor out

Re: [RFC PATCH 4/6] commit-graph: avoid writing when repo is shallow

2018-05-31 Thread Junio C Hamano
Derrick Stolee writes: > Shallow clones do not interact well with the commit-graph feature for > several reasons. Instead of doing the hard thing to fix those > interactions, instead prevent reading or writing a commit-graph file for > shallow repositories. The latter instead would want to

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Junio C Hamano
Stefan Beller writes: > plumbing command, so the likelihood of git-log calls in scripts out > there is high. > > So maybe the community should strive to be more aggressive about > changing the porcelain interface for the better. To me, these two paragraphs are being incoherent. If plumbing

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Junio C Hamano
Thomas Gummerer writes: >> I considered splitting this into checkout.defaultRemote and >> worktree.defaultRemote, but it's probably less confusing to break our >> own rules that anything shared between config should live in core.* >> than have two config settings, and I couldn't come up with a

Re: [PATCH v4 3/9] checkout.[ch]: move struct declaration into *.h

2018-05-31 Thread Junio C Hamano
Thomas Gummerer writes: > We seem to have plenty of structs defined in '.c' files, if they are > only needed there. Its use also seems to be single purpose for the > callback data, so I'm a bit puzzled how having this in a header file > instead of the .c file would be helpful? > > I feel like

Re: [PATCH] fetch: do not pass ref-prefixes for fetch by exact SHA1

2018-05-31 Thread Junio C Hamano
Jonathan Nieder writes: > When v2.18.0-rc0~10^2~1 (refspec: consolidate ref-prefix generation > logic, 2018-05-16) factored out the ref-prefix generation code for > reuse, it left out the 'if (!item->exact_sha1)' test in the original > ref-prefix generation code. As a result, fetches by SHA-1

Re: [PATCH 5/5] refspec.c: use rhs in parse_refspec instead of potentially uninitialized item->dst

2018-05-31 Thread Junio C Hamano
Stefan Beller writes: > 'item->dst' has not been assigned if '!rhs' is true. As the caller is allowed > to pass in uninitialized > memory (we don't assume 'item' was zeroed out before calling), this fixes an > access to > uninitialized memory. Did I miss the other 4 patches that this might

[L10N] Kickoff of translation for Git 2.18.0 round 1

2018-05-31 Thread Jiang Xin
Hi, Git v2.18.0-rc0 has been released, and it's time to start new round of git l10n. This time there are 108 updated messages need to be translated since last update: l10n: git.pot: v2.18.0 round 1 (108 new, 14 removed) Generate po/git.pot from v2.18.0-rc0 for git v2.18.0 l10n round 1.

Re: [PATCH] fsckObjects tests: show how v2.17.1 can exploit downstream

2018-05-31 Thread Junio C Hamano
Jeff King writes: > I haven't tested it, but I suspect that doing multiple fetches could > result in passing bad objects through a fetch.fsckObjects filter. > Because the objects aren't quarantined on fetch, and because > fsck_finish() requires the objects to be installed into place, they may >

Re: [PATCH] branch: issue "-l" deprecation warning after pager starts

2018-05-31 Thread Junio C Hamano
Jeff King writes: > So I think you're proposing: > > - step 0: warn about "-l" when it actually gets used, and otherwise > continue ignoring > > - step 1: turn "-l" into "--list" > > - step 2: there is no step 2 > > ... So I > guess the right rule is to warn when we are not in

Re: Is origin/HEAD only being created on clone a bug? #leftoverbits

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > We already have to deal with this special case of origin/HEAD > being re-pointed in a repository that we "clone", so we would just > do whatever happens to a repository that's cloned. OK. Not visiting that issue while we discuss this "origin/HEAD is useful, so

Re: [PATCH v6 1/2] blame: prevent error if range ends past end of file

2018-05-31 Thread Junio C Hamano
isteph...@atlassian.com writes: > From: Isabella Stephens > > If the -L option is used to specify a line range in git blame, and the > end of the range is past the end of the file, git will fail with a fatal > error. This commit prevents such behavior - instead we display the blame > for

Re: [PATCH v6 2/2] log: prevent error if line range ends past end of file

2018-05-31 Thread Junio C Hamano
isteph...@atlassian.com writes: > From: Isabella Stephens > > If the -L option is used to specify a line range in git log, and the end > of the range is past the end of the file, git will fail with a fatal > error. This commit prevents such behaviour - instead we perform the log > for existing

Re: [RFC PATCH 0/6] Fix commit-graph/graft/replace/shallow combo

2018-05-31 Thread Derrick Stolee
On 5/31/2018 2:33 PM, Stefan Beller wrote: On Thu, May 31, 2018 at 10:40 AM, Derrick Stolee wrote: The commit-graph file stores a condensed version of the commit history. This helps speed up several operations involving commit walks. This feature does not work well if those commits "change"

Re: [PATCH] RelNotes: remove duplicate release note

2018-05-31 Thread Junio C Hamano
Elijah Newren writes: > In the 2.18 cycle, directory rename detection was merged, then reverted, > then reworked in such a way to fix another prominent bug in addition to > the original problem causing it to be reverted. When the reworked series > was merged, we ended up with two nearly

Re: [PATCH v2 2/5] config doc: unify the description of fsck.* and receive.fsck.*

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > It's our documentation that should be clearly stating those reasons. If > we're not saying anything about these being historical bugs, then e.g. I > (not knowing the implementation) wouldn't have turned this on globally > on my site knowing that because I have

Re: What's cooking in git.git (May 2018, #04; Wed, 30)

2018-05-31 Thread Junio C Hamano
Duy Nguyen writes: > On Wed, May 30, 2018 at 8:38 AM, Junio C Hamano wrote: >> * sb/object-store-alloc (2018-05-16) 13 commits >> - alloc: allow arbitrary repositories for alloc functions >> - object: allow create_object to handle arbitrary repositories >> - object: allow grow_object_hash to

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 4:09 PM, Robert P. J. Day wrote: > On Fri, 1 Jun 2018, Johannes Sixt wrote: > >> Am 31.05.2018 um 19:27 schrieb Robert P. J. Day: >> > On Thu, 31 May 2018, Duy Nguyen wrote: >> >> git diff-index is "plumbing", designed for writing scripts. "git >> >> diff" on the other

Re: What's cooking in git.git (May 2018, #04; Wed, 30)

2018-05-31 Thread Junio C Hamano
Taylor Blau writes: > I have these patches mostly updated on my copy (available at > https://github.com/ttaylorr/git/compare/tb/grep-column) but am out of > the office for the next week, so I will polish and send these on June > 8th. > >> * tb/grep-only-matching (2018-05-14) 2 commits >> -

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Robert P. J. Day
On Fri, 1 Jun 2018, Johannes Sixt wrote: > Am 31.05.2018 um 19:27 schrieb Robert P. J. Day: > > On Thu, 31 May 2018, Duy Nguyen wrote: > >> git diff-index is "plumbing", designed for writing scripts. "git > >> diff" on the other hand is for users and its behavior may change > >> even if it breaks

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Johannes Sixt
Am 31.05.2018 um 19:27 schrieb Robert P. J. Day: On Thu, 31 May 2018, Duy Nguyen wrote: git diff-index is "plumbing", designed for writing scripts. "git diff" on the other hand is for users and its behavior may change even if it breaks backward compatibility. ah, this was a philosophical

[PATCH 2/2] index-pack: handle --strict checks of non-repo packs

2018-05-31 Thread Jeff King
Commit 73c3f0f704 (index-pack: check .gitmodules files with --strict, 2018-05-04) added a call to add_packed_git(), with the intent that the newly-indexed objects would be available to the process when we run fsck_finish(). But that's not what add_packed_git() does. It only allocates the struct,

[PATCH 1/2] prepare_commit_graft: treat non-repository as a noop

2018-05-31 Thread Jeff King
The parse_commit_buffer() function consults lookup_commit_graft() to see if we need to rewrite parents. The latter will look at $GIT_DIR/info/grafts. If you're outside of a repository, then this will trigger a BUG() as of b1ef400eec (setup_git_env: avoid blind fall-back to ".git", 2016-10-20).

[PATCH 0/2] index-pack out-of-repo fixups

2018-05-31 Thread Jeff King
Coverity reported that the recently-added call to add_packed_git() in index-pack.c actually does nothing. It's right, and it turns out this is a minor bug in the .gitmodules fsck patches in v2.17.1. I say minor because it errs on the side of complaining too much (so it's not a security problem)

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Thomas Gummerer
On 05/31, Ævar Arnfjörð Bjarmason wrote: > Introduce a checkout.defaultRemote setting which can be used to > designate a remote to prefer (via checkout.defaultRemote=origin) when > running e.g. "git checkout master" to mean origin/master, even though > there's other remotes that have the "master"

Re: [PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Stefan Beller
Hi Ævar, Sorry for chiming in late. I have a couple of thoughts: > ( > cd /tmp && > rm -rf tbdiff && > git clone g...@github.com:trast/tbdiff.git && > cd tbdiff && > git branch -m topic && > git checkout master > ) > > That will output: > >

Re: [PATCH v4 3/9] checkout.[ch]: move struct declaration into *.h

2018-05-31 Thread Thomas Gummerer
On 05/31, Ævar Arnfjörð Bjarmason wrote: > Move the tracking_name_data struct used in checkout.c into its > corresponding header file. This wasn't done in 7c85a87c54 ("checkout: > factor out functions to new lib file", 2017-11-26) when checkout.[ch] > were created, and is more consistent with the

wir bieten 2% Kredite

2018-05-31 Thread Ronald Bernstein
Sehr geehrte Damen und Herren, Sie brauchen Geld? Sie sind auf der suche nach einem Darlehen? Seriös und unkompliziert? Dann sind Sie hier bei uns genau richtig. Durch unsere jahrelange Erfahrung und kompetente Beratung sind wir Europaweit tätig. Wir bieten jedem ein GÜNSTIGES Darlehen zu TOP

[PATCH v4 9/9] checkout & worktree: introduce checkout.defaultRemote

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Introduce a checkout.defaultRemote setting which can be used to designate a remote to prefer (via checkout.defaultRemote=origin) when running e.g. "git checkout master" to mean origin/master, even though there's other remotes that have the "master" branch. I want this because it's very handy to

[PATCH v4 8/9] checkout: add advice for ambiguous "checkout "

2018-05-31 Thread Ævar Arnfjörð Bjarmason
As the "checkout" documentation describes: If is not found but there does exist a tracking branch in exactly one remote (call it ) with a matching name, treat as equivalent to [...] / hint: instead of ? Signed-off-by: Ævar Arnfjörð Bjarmason --- Documentation/config.txt | 7

[PATCH v4 3/9] checkout.[ch]: move struct declaration into *.h

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Move the tracking_name_data struct used in checkout.c into its corresponding header file. This wasn't done in 7c85a87c54 ("checkout: factor out functions to new lib file", 2017-11-26) when checkout.[ch] were created, and is more consistent with the rest of the codebase. Signed-off-by: Ævar

[PATCH v4 7/9] builtin/checkout.c: use "ret" variable for return

2018-05-31 Thread Ævar Arnfjörð Bjarmason
There is no point in doing this right now, but in later change the "ret" variable will be inspected. This change makes that meaningful change smaller. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/checkout.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v4 4/9] checkout.[ch]: introduce an *_INIT macro

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Add an *_INIT macro for the tracking_name_data similar to what exists elsewhere in the codebase, e.g. OID_ARRAY_INIT in sha1-array.h. This will make it more idiomatic in later changes to add more fields to the struct & its initialization macro. Signed-off-by: Ævar Arnfjörð Bjarmason ---

[PATCH v4 1/9] checkout tests: index should be clean after dwim checkout

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Assert that whenever there's a DWIM checkout that the index should be clean afterwards, in addition to the correct branch being checked-out. The way the DWIM checkout code in checkout.[ch] works is by looping over all remotes, and for each remote trying to find if a given reference name only

[PATCH v4 0/9] ambiguous checkout UI & checkout.defaultRemote

2018-05-31 Thread Ævar Arnfjörð Bjarmason
v4 started as a simple bug-fix for this one-part series, but since it's not going to make 2.18.0 at this point I thought I'd do some more work on it. Comments on patches below: Ævar Arnfjörð Bjarmason (9): checkout tests: index should be clean after dwim checkout Tests that would have revealed

[PATCH v4 6/9] checkout: pass the "num_matches" up to callers

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Pass the previously added "num_matches" struct value up to the callers of unique_tracking_name(). This will allow callers to optionally print better error messages in a later change. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/checkout.c | 16 +++- builtin/worktree.c | 4

[PATCH v4 2/9] checkout.h: wrap the arguments to unique_tracking_name()

2018-05-31 Thread Ævar Arnfjörð Bjarmason
The line was too long already, and will be longer still when a later change adds another argument. Signed-off-by: Ævar Arnfjörð Bjarmason --- checkout.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checkout.h b/checkout.h index 9980711179..4cd4cd1c23 100644 ---

[PATCH v4 5/9] checkout.[ch]: change "unique" member to "num_matches"

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Internally track how many matches we find in the check_tracking_name() callback. Nothing uses this now, but it will be made use of in a later change. Signed-off-by: Ævar Arnfjörð Bjarmason --- checkout.c | 4 ++-- checkout.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 12:33 PM, Alban Gruin wrote: > Hi Stefan, > > Le 31/05/2018 à 20:44, Stefan Beller a écrit : >> On Thu, May 31, 2018 at 10:48 AM, Phillip Wood >> wrote: >>> Hi Alban, it's great to see you working on this >>> >>> On 31/05/18 12:01, Alban Gruin wrote: This series

Re: [RFC PATCH 1/6] DO NOT MERGE: compute commit-graph on every commit

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:41 AM, Derrick Stolee wrote: > Also enable core.commitGraph and gc.commitGraph. Helps to test the > commit-graph feature with the rest of the test infrastructure. > > Signed-off-by: Derrick Stolee > --- > builtin/commit.c | 5 + > builtin/gc.c | 2 +- >

Re: [GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Alban Gruin
Hi Stefan, Le 31/05/2018 à 20:44, Stefan Beller a écrit : > On Thu, May 31, 2018 at 10:48 AM, Phillip Wood > wrote: >> Hi Alban, it's great to see you working on this >> >> On 31/05/18 12:01, Alban Gruin wrote: >>> This series rewrites append_todo_help() from shell to C. This is part >>> of the

Re: [RFC PATCH 5/6] fetch: destroy commit graph on shallow parameters

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:41 AM, Derrick Stolee wrote: > The commit-graph feature is not compatible with history-rewriting > features such as shallow clones. I associate "history rewriting" with changing objects in the history. For example interactive rebase or the BFG cleaner[1] /

Re: [GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Alban Gruin
Hi Phillip, Le 31/05/2018 à 19:48, Phillip Wood a écrit : > Hi Alban, it's great to see you working on this > > On 31/05/18 12:01, Alban Gruin wrote: >> This series rewrites append_todo_help() from shell to C. This is part >> of the effort to rewrite interactive rebase in C. >> >> The first

Re: [PATCH v2 2/2] note git-secur...@googlegroups.com in more places

2018-05-31 Thread Thomas Gummerer
On 05/30, brian m. carlson wrote: > On Wed, May 30, 2018 at 09:52:55PM +0100, Thomas Gummerer wrote: > > Add a mention of the security mailing list to the README, and to > > Documentation/SubmittingPatches.. 2caa7b8d27 ("git manpage: note > > git-secur...@googlegroups.com", 2018-03-08) already

Re: [RFC PATCH 4/6] commit-graph: avoid writing when repo is shallow

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:41 AM, Derrick Stolee wrote: > Shallow clones do not interact well with the commit-graph feature for > several reasons. Instead of doing the hard thing to fix those > interactions, instead prevent reading or writing a commit-graph file for > shallow repositories. Makes

Re: [PATCH 3/3] submodule--helper: plug mem leak in print_default_remote

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 5:07 AM, Johannes Schindelin wrote: > Hi Stefan, > > On Wed, 30 May 2018, Stefan Beller wrote: > >> Signed-off-by: Stefan Beller >> --- >> builtin/submodule--helper.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/builtin/submodule--helper.c

Re: [PATCH 2/3] sequencer.c: free author variable when merging fails

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 5:04 AM, Johannes Schindelin wrote: > Hi Stefan, > > On Wed, 30 May 2018, Stefan Beller wrote: > >> Signed-off-by: Stefan Beller >> --- >> >> This was a deliberate oversight in f241ff0d0a9 (prepare the builtins for a >> libified merge_recursive(), 2016-07-26) > > No, it

Re: [GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:48 AM, Phillip Wood wrote: > Hi Alban, it's great to see you working on this > > On 31/05/18 12:01, Alban Gruin wrote: >> This series rewrites append_todo_help() from shell to C. This is part >> of the effort to rewrite interactive rebase in C. >> >> The first commit

Re: Bug: Install from .tar.xz fails without write permission on /usr/local/share/man/man3

2018-05-31 Thread Christian Couder
Hi, On Thu, May 31, 2018 at 6:30 PM, wrote: > > I was trying to build git 2.9.5 as a normal user, as I have no root access > on a cluster with outdated software. > > The build fails, unless I change the PREFIX=/usr/local line in > per/perl.mak:80 to a folder where I have write permission. >

Re: [RFC PATCH 0/6] Fix commit-graph/graft/replace/shallow combo

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:40 AM, Derrick Stolee wrote: > The commit-graph file stores a condensed version of the commit history. > This helps speed up several operations involving commit walks. This > feature does not work well if those commits "change" using features like > commit grafts,

Re: [GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Phillip Wood
Hi Alban, it's great to see you working on this On 31/05/18 12:01, Alban Gruin wrote: > This series rewrites append_todo_help() from shell to C. This is part > of the effort to rewrite interactive rebase in C. > > The first commit rewrites append_todo_help() in C (the C version > covers a bit

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Duy Nguyen
On Thu, May 31, 2018 at 7:27 PM, Robert P. J. Day wrote: > On Thu, 31 May 2018, Duy Nguyen wrote: > >> On Thu, May 31, 2018 at 6:38 PM, Robert P. J. Day >> wrote: >> > >> > was going over some hooks and writing some tutorials for some of >> > the commit-related, client-side hooks, and was

[RFC PATCH 1/6] DO NOT MERGE: compute commit-graph on every commit

2018-05-31 Thread Derrick Stolee
Also enable core.commitGraph and gc.commitGraph. Helps to test the commit-graph feature with the rest of the test infrastructure. Signed-off-by: Derrick Stolee --- builtin/commit.c | 5 + builtin/gc.c | 2 +- environment.c| 2 +- 3 files changed, 7 insertions(+), 2 deletions(-)

[RFC PATCH 4/6] commit-graph: avoid writing when repo is shallow

2018-05-31 Thread Derrick Stolee
Shallow clones do not interact well with the commit-graph feature for several reasons. Instead of doing the hard thing to fix those interactions, instead prevent reading or writing a commit-graph file for shallow repositories. Signed-off-by: Derrick Stolee --- commit-graph.c | 12

[RFC PATCH 6/6] commit-graph: revert to odb on missing parents

2018-05-31 Thread Derrick Stolee
The commit-graph format includes a way to specify a parent is "missing" from the commit-graph (i.e. we do not have a record of that parent in our list of object IDs, and hence cannot provide a graph position). For mose cases, this does not occur due to the close_reachable() method adding all

[RFC PATCH 3/6] commit-graph: enable replace-object and grafts

2018-05-31 Thread Derrick Stolee
Create destroy_commit_graph() method to delete the commit-graph file when history is altered by a replace-object call. If the commit-graph is rebuilt after that, we will load the correct object while reading the commit-graph. When parsing a commit, first check if the commit was grafted. If so,

[RFC PATCH 5/6] fetch: destroy commit graph on shallow parameters

2018-05-31 Thread Derrick Stolee
The commit-graph feature is not compatible with history-rewriting features such as shallow clones. When running a 'git fetch' with any of the shallow/unshallow options, destroy the commit-graph file and override core.commitGraph to be false. Signed-off-by: Derrick Stolee --- builtin/fetch.c | 6

[RFC PATCH 2/6] DO NOT MERGE: write commit-graph on every fetch

2018-05-31 Thread Derrick Stolee
THIS IS ONLY FOR TESTING TO INCREASE TEST COVERAGE Signed-off-by: Derrick Stolee --- builtin/fetch.c | 4 1 file changed, 4 insertions(+) diff --git a/builtin/fetch.c b/builtin/fetch.c index 8ee998ea2e..af896e4b74 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -20,6 +20,7 @@

[RFC PATCH 0/6] Fix commit-graph/graft/replace/shallow combo

2018-05-31 Thread Derrick Stolee
The commit-graph file stores a condensed version of the commit history. This helps speed up several operations involving commit walks. This feature does not work well if those commits "change" using features like commit grafts, replace objects, or shallow clones. Since the commit-graph feature is

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Robert P. J. Day
On Thu, 31 May 2018, Duy Nguyen wrote: > On Thu, May 31, 2018 at 6:38 PM, Robert P. J. Day > wrote: > > > > was going over some hooks and writing some tutorials for some of > > the commit-related, client-side hooks, and was wondering (perhaps > > stupidly) why the pre-commit.sample hook uses,

Re: is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Duy Nguyen
On Thu, May 31, 2018 at 6:38 PM, Robert P. J. Day wrote: > > was going over some hooks and writing some tutorials for some of the > commit-related, client-side hooks, and was wondering (perhaps > stupidly) why the pre-commit.sample hook uses, as its last line: > > exec git diff-index --check

is there a reason pre-commit.sample uses "git diff-index"?

2018-05-31 Thread Robert P. J. Day
was going over some hooks and writing some tutorials for some of the commit-related, client-side hooks, and was wondering (perhaps stupidly) why the pre-commit.sample hook uses, as its last line: exec git diff-index --check --cached $against -- ^^ as in, could this not

Re: Git Vulnerability Announced?

2018-05-31 Thread Jeff King
On Thu, May 31, 2018 at 04:00:38PM +, Erika Voss wrote: > Yes here is what was sent to me - > > https://www.theregister.co.uk/2018/05/30/git_vulnerability_could_lead_to_an_attack_of_the_repo_clones/ > https://www.debian.org/security/2018/dsa-4212 Yeah, the release announcement from the

Bug: Install from .tar.xz fails without write permission on /usr/local/share/man/man3

2018-05-31 Thread mlell
Hi, I was trying to build git 2.9.5 as a normal user, as I have no root access on a cluster with outdated software. The build fails, unless I change the PREFIX=/usr/local line in per/perl.mak:80 to a folder where I have write permission. Apparently, perl.mak does not honour the --prefix=

Re: Git Vulnerability Announced?

2018-05-31 Thread Erika Voss
Hi Randall, Yes here is what was sent to me - https://www.theregister.co.uk/2018/05/30/git_vulnerability_could_lead_to_an_attack_of_the_repo_clones/ https://www.debian.org/security/2018/dsa-4212 The one that I could find from online was: https://git-scm.com/download/mac But, the latest

RE: Git Vulnerability Announced?

2018-05-31 Thread Randall S. Becker
On May 31, 2018 11:57 AM, Erika Voss wrote: > There was an article I came across yesterday identifying a vulnerability to > patch our Git environments. I don’t see one that is available for our Mac > Clients - is there a more recent one that I can download that is available to > patch the 2.17.0

Git Vulnerability Announced?

2018-05-31 Thread Erika Voss
Good morning, There was an article I came across yesterday identifying a vulnerability to patch our Git environments. I don’t see one that is available for our Mac Clients - is there a more recent one that I can download that is available to patch the 2.17.0 version? Thank you, Erika

Re: [PATCH] fetch: do not pass ref-prefixes for fetch by exact SHA1

2018-05-31 Thread Brandon Williams
Thanks for finding this, I don't know how I missed moving that bit over when factoring it out. Well I guess I sort of rewrote it and combined two pieces of logic so that's how. Anyway, this looks right and thanks for adding the test. On Thu, May 31, 2018 at 12:23 AM, Jonathan Nieder wrote: >

Re: Weird revision walk behaviour

2018-05-31 Thread Kevin Bracey
On 31/05/2018 08:43, Jeff King wrote: If there are zero parents (neither relevant nor irrelevant), is it still TREESAME? I would say in theory yes. Not sure - I think roots are such a special case that TREESAME effectively doesn't matter. We always test for roots first. So what I was

Re: [PATCH v3 11/20] commit-graph: verify root tree OIDs

2018-05-31 Thread Derrick Stolee
On 5/30/2018 6:24 PM, Jakub Narebski wrote: Derrick Stolee writes: The 'verify' subcommand must compare the commit content parsed from the commit-graph and compare it against the content in the object database. You have "compare" twice in the above sentence. Use lookup_commit() and

Re: [PATCH v3 10/20] commit-graph: verify objects exist

2018-05-31 Thread Derrick Stolee
On 5/30/2018 3:22 PM, Jakub Narebski wrote: Derrick Stolee writes: In the 'verify' subcommand, load commits directly from the object database to ensure they exist. Parse by skipping the commit-graph. All right, before we check that the commit data matches, we need to check that all the

Gratulujeme k získaniu 650 000,00 €

2018-05-31 Thread Thiago Costa - Teknisa Produto
Gratulujeme, že ste získali € 650,000.00 v miliónoch Euro / Google Propagacné remízy sa konali 1. mája 2018. Obrátte sa na nášho reklamného zástupcu s nasledujúcimi informáciami o nárokoch na tento e-mail. janosiklubos...@gmail.com 1. Celé meno: 2. Adresa: 3. Pohlavie: 4. Vek: 5. Zamestnanie

Re: [PATCH v2 01/18] Add a function to solve least-cost assignment problems

2018-05-31 Thread Johannes Schindelin
Hi Brian, On Wed, 30 May 2018, brian m. carlson wrote: > On Wed, May 30, 2018 at 09:14:06AM -0700, Stefan Beller wrote: > > Good point. I remember my initial reaction to the file names was > > expecting some hungarian notation, which totally didn't make sense, so > > I refrained from commenting.

Re: Git installer bugs

2018-05-31 Thread Johannes Schindelin
Hi Stefan, just to close the loop: On Wed, 30 May 2018, Stefan Beller wrote: > On Wed, May 30, 2018 at 12:48 PM, John Meyer wrote: > > Ran the installer, selected the option to not modify the path & the path > > was modified anyway... it removed git from the path (it was there from a > >

Re: [PATCH 3/3] submodule--helper: plug mem leak in print_default_remote

2018-05-31 Thread Johannes Schindelin
Hi Stefan, On Wed, 30 May 2018, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > builtin/submodule--helper.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c > index 7c3cd9dbeba..96024fee1b1 100644 > ---

Re: [PATCH 1/3] refs/packed-backend.c: close fd of empty file

2018-05-31 Thread Johannes Schindelin
Hi Stefan, I am Cc:ing Michael, the original author of the fixed commit. On Wed, 30 May 2018, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > > This was an oversight in 01caf20d57a (load_contents(): don't try to mmap an > empty file, 2018-01-24). > > This and the following 2

Re: [PATCH 2/3] sequencer.c: free author variable when merging fails

2018-05-31 Thread Johannes Schindelin
Hi Stefan, On Wed, 30 May 2018, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > > This was a deliberate oversight in f241ff0d0a9 (prepare the builtins for a > libified merge_recursive(), 2016-07-26) No, it was not deliberate. It was inadvertent, most likely ;-) > sequencer.c | 4

Re: [PATCH 1/3] refs/packed-backend.c: close fd of empty file

2018-05-31 Thread Michael Haggerty
On Wed, May 30, 2018 at 7:03 PM, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > > This was an oversight in 01caf20d57a (load_contents(): don't try to mmap an > empty file, 2018-01-24). > > This and the following 2 patches apply on master. > > refs/packed-backend.c | 1 + > 1 file

Re: [PATCH] sequencer: ensure labels that are object IDs are rewritten

2018-05-31 Thread Johannes Schindelin
Hi Brian, On Wed, 30 May 2018, brian m. carlson wrote: > On Wed, May 30, 2018 at 11:54:27AM +0200, Johannes Schindelin wrote: > > > > + third=$(git rev-parse HEAD) && > > > + git checkout -b labels master && > > > + git merge --no-commit third && > > > + test_tick && > > > + git commit -m

[GSoC][PATCH 0/2] rebase -i: rewrite append_todo_help() in C

2018-05-31 Thread Alban Gruin
This series rewrites append_todo_help() from shell to C. This is part of the effort to rewrite interactive rebase in C. The first commit rewrites append_todo_help() in C (the C version covers a bit more than the old shell version), adds some parameters to rebase--helper, etc. The second one

[GSoC][PATCH 1/2] rebase--interactive: rewrite append_todo_help() in C

2018-05-31 Thread Alban Gruin
This rewrites append_todo_help() from shell to C. It also incorporates some parts of initiate_action() and complete_action() that also write help texts to the todo file. Two flags are added to rebase--helper.c: one to call append_todo_help() (`--append-todo-help`), and another one to tell

[GSoC][PATCH 2/2] sequencer: remove newlines from append_todo_help() messages

2018-05-31 Thread Alban Gruin
This removes newlines before and after the messages in append_todo_help(). This is done to avoid confusions from translators. These newlines are now inserted with `strbuf_add_commented_lines()`. Messages were ended by two newlines characters, but here we only insert one at a time. This is because

Re: [PATCH v3] checkout & worktree: introduce checkout.implicitRemote

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Thu, May 24 2018, Ævar Arnfjörð Bjarmason wrote: > struct tracking_name_data { > /* const */ char *src_ref; > char *dst_ref; > struct object_id *dst_oid; > int unique; > + const char *implicit_remote; > + char *implicit_dst_ref; > }; There's a bug here that

Re: Is origin/HEAD only being created on clone a bug? #leftoverbits

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Wed, May 30 2018, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> If you make an initial commit and push to a remote repo "origin", you >> don't get a remote origin/HEAD reference, and a "fetch" won't create it >> either. >> ... >> Some code spelunking reveals

Re: [PATCH 3/4] config doc: elaborate on what transfer.fsckObjects does

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Fri, May 25 2018, Junio C Hamano wrote: > Eric Sunshine writes: > >>> +will instead be left unreferenced in the repository. That's considered >>> +a bug, and hopefully future git release will implement a quarantine >>> +for the "fetch" side as well. >> >> If this was a "BUGS" section in a

[PATCH] fetch: do not pass ref-prefixes for fetch by exact SHA1

2018-05-31 Thread Jonathan Nieder
When v2.18.0-rc0~10^2~1 (refspec: consolidate ref-prefix generation logic, 2018-05-16) factored out the ref-prefix generation code for reuse, it left out the 'if (!item->exact_sha1)' test in the original ref-prefix generation code. As a result, fetches by SHA-1 generate ref-prefixes as though the

Re: [PATCH v2 5/5] fetch: implement fetch.fsck.*

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Wed, May 30 2018, Junio C Hamano wrote: > Earlier I mumbled "this 4-patch series generally looks good but I > need to re-read the implementation step"; I meant this 5-patch > series and here is my impression after re-reading the implementation > step. > > Ævar Arnfjörð Bjarmason writes: >

Re: [PATCH v2 2/5] config doc: unify the description of fsck.* and receive.fsck.*

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Wed, May 30 2018, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> On Mon, May 28, 2018 at 11:45 AM, Junio C Hamano wrote: >>> If the project has some tool constraints and have to accept new >>> "broken" objects on ongoing basis, then fsck. facility may >>> make sense, but that

Re: [RFC PATCH 3/4] color.ui config: don't die on unknown values

2018-05-31 Thread Ævar Arnfjörð Bjarmason
On Wed, May 30 2018, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> Before this change git will die on any unknown color.ui values: >> >> $ git -c color.ui=doesnotexist show >> fatal: bad numeric config value 'doesnotexist' for 'color.ui': invalid >> unit > > I do not

  1   2   >