Coredump on ls-remote + --sort

2018-09-22 Thread H.Merijn Brand
A small background why I wanted this: I need to build a new version of some software hosted in git, add a lot of shared/static stuff and automatically test it. I want to get the most recent *tag* and create a folder with the tagname in it, go into that folder and clone the repo, check out the tag,

Re: Coredump on ls-remote + --sort

2018-09-22 Thread Ævar Arnfjörð Bjarmason
On Sat, Sep 22 2018, H.Merijn Brand wrote: > A small background why I wanted this: I need to build a new version of > some software hosted in git, add a lot of shared/static stuff and > automatically test it. I want to get the most recent *tag* and create a > folder with the tagname in it, go in

Re: [PATCH 1/8] sha1-array: provide oid_array_filter

2018-09-22 Thread Ævar Arnfjörð Bjarmason
On Fri, Sep 21 2018, Stefan Beller wrote: > +/* > + * Apply want to each entry in array, retaining only the entries for > + * which the function returns true. Preserve the order of the entries > + * that are retained. > + */ > +void oid_array_filter(struct oid_array *array, > +

Hello

2018-09-22 Thread jasmin nzere
Good day. Please did you receive my previous email to you?

Re: Feature request: Provide porcelain to manage symbolic references as branch aliases

2018-09-22 Thread Phil Sainty
Updating the proof-of-concept script for this feature request. (See attachment.) I'm quoting the entire original message for reference, just because it's been a while since I proposed this. -Phil On 30/04/14 00:51, Phil Sainty wrote: > Most of the plumbing for having branch name aliases alread

[PATCH] ref-filter: don't look for objects when outside of a repository

2018-09-22 Thread SZEDER Gábor
The command 'git ls-remote --sort=authordate ' segfaults when run outside of a repository, ever since the introduction of its '--sort' option in 1fb20dfd8e (ls-remote: create '--sort' option, 2018-04-09). While in general the 'git ls-remote' command can be run outside of a repository just fine, it

[PATCH] git help: promote 'git help -av'

2018-09-22 Thread Nguyễn Thái Ngọc Duy
When you type "git help" (or just "git") you are greeted with a list with commonly used commands and their short description and are suggested to use "git help -a" or "git help -g" for more details. "git help -av" would be more friendly and inline with what is shown with "git help" since it shows

hi

2018-09-22 Thread Ann Johnson
i'm diagnosed with laryngeal cancer, i want to leave money to you,am giving my body to science for research. i want this last act of mine to be an offering to GOD and humanity. respond so i know you got this.God bless you abundantly

Re: [PATCH v2 2/3] transport.c: introduce core.alternateRefsCommand

2018-09-22 Thread brian m. carlson
On Fri, Sep 21, 2018 at 02:47:43PM -0400, Taylor Blau wrote: > +expect_haves () { > + printf "%s .have\n" $(git rev-parse $@) >expect > +} > + > +extract_haves () { > + depacketize - | grep '\.have' | sed -e 's/\\0.*$//g' It looks like you're trying to match a NUL here in the sed expressio

[PATCH 4/8] revision.c: correct a parameter name

2018-09-22 Thread Nguyễn Thái Ngọc Duy
This function is a callback of for_each_reflog() which will pass a ref name as the first argument, not a path (to a reflog file). Signed-off-by: Nguyễn Thái Ngọc Duy --- revision.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/revision.c b/revision.c index e18bd530e4

[PATCH 2/8] Add a place for (not) sharing stuff between worktrees

2018-09-22 Thread Nguyễn Thái Ngọc Duy
When multiple worktrees are used, we need rules to determine if something belongs to one worktree or all of them. Instead of keeping adding rules when new stuff comes, have a generic rule: - Inside $GIT_DIR, which is per-worktree by default, add $GIT_DIR/common which is always shared. New featur

[PATCH 6/8] fsck: Move fsck_head_link() to get_default_heads() to avoid some globals

2018-09-22 Thread Nguyễn Thái Ngọc Duy
From: Elijah Newren This will make it easier to check the HEAD of other worktrees from fsck. Signed-off-by: Elijah Newren Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/fsck.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/builtin/fsck.c b/b

[PATCH 3/8] refs: new ref types to make per-worktree refs visible to all worktrees

2018-09-22 Thread Nguyễn Thái Ngọc Duy
One of the problems with multiple worktree is accessing per-worktree refs of one worktree from another worktree. This was sort of solved by multiple ref store, where the code can open the ref store of another worktree and has access to the ref space of that worktree. The problem with this is repor

[PATCH 8/8] reflog expire: cover reflog from all worktrees

2018-09-22 Thread Nguyễn Thái Ngọc Duy
Reported-by: Jeff King Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-reflog.txt | 7 ++- builtin/reflog.c | 22 +++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt index 47

[PATCH 5/8] revision.c: better error reporting on ref from different worktrees

2018-09-22 Thread Nguyễn Thái Ngọc Duy
Make use of the new ref aliases to pass refs from another worktree around and access them from the current ref store instead. This does not change any functionality, but when a problem shows up, we would report something like fatal: bad object worktrees/ztemp/HEAD warning: reflog of 'main/

[PATCH 7/8] fsck: check HEAD and reflog from other worktrees

2018-09-22 Thread Nguyễn Thái Ngọc Duy
From: Elijah Newren fsck is a repo-wide operation and should check all references no matter which worktree they are associated to. Reported-by: Jeff King Helped-by: Elijah Newren Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/fsck.c | 55 ++--- t

[PATCH 1/8] refs.c: indent with tabs, not spaces

2018-09-22 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index a7a75b4cc0..9f7268d5fe 100644 --- a/refs.c +++ b/refs.c @@ -646,7 +646,7 @@ enum ref_type ref_type(const char *refname) return REF_TYPE_PER_WORK

[PATCH 0/8] fix per-worktree ref iteration in fsck/reflog expire

2018-09-22 Thread Nguyễn Thái Ngọc Duy
Sorry it took me so long to revisit these bugs, even though the first one was reported nearly a year ago. I guess I slept on it way longer than I should have. This series opens up the currrent worktree's ref space, allowing one worktree to see refs from other worktrees. With this, it's possible to

Re: Very simple popen() code request, ground-shaking functionality openned by it

2018-09-22 Thread Sebastian Gniazdowski
On 22 września 2018 at 01:30:36, Ævar Arnfjörð Bjarmason (ava...@gmail.com) wrote:  > Duy's   > https://public-inbox.org/git/20180920161928.ga13...@duynguyen.home/ is   > another recent thing that reminded me of this, i.e. that suggested   > "\\|/-" spinner could be made much neater with non-ASCII

Re: [PATCH] git help: promote 'git help -av'

2018-09-22 Thread Ævar Arnfjörð Bjarmason
On Sat, Sep 22 2018, Nguyễn Thái Ngọc Duy wrote: > When you type "git help" (or just "git") you are greeted with a list > with commonly used commands and their short description and are > suggested to use "git help -a" or "git help -g" for more details. > > "git help -av" would be more friendly

Re: [PATCH v2 2/3] transport.c: introduce core.alternateRefsCommand

2018-09-22 Thread Jeff King
On Sat, Sep 22, 2018 at 06:02:31PM +, brian m. carlson wrote: > On Fri, Sep 21, 2018 at 02:47:43PM -0400, Taylor Blau wrote: > > +expect_haves () { > > + printf "%s .have\n" $(git rev-parse $@) >expect > > +} > > + > > +extract_haves () { > > + depacketize - | grep '\.have' | sed -e 's/\\0

Good day,

2018-09-22 Thread RS
Good day, Death without a WILL is a damning circumstance that causes lot of problems to family. With confidentiality I am reaching out to you regarding a circumstance within my jurisdiction. One of our client passed on without a WILL over two years now. Efforts to trace any relation proved void h

Re: [PATCH] git help: promote 'git help -av'

2018-09-22 Thread Duy Nguyen
On Sat, Sep 22, 2018 at 9:29 PM Ævar Arnfjörð Bjarmason wrote: > > > On Sat, Sep 22 2018, Nguyễn Thái Ngọc Duy wrote: > > > When you type "git help" (or just "git") you are greeted with a list > > with commonly used commands and their short description and are > > suggested to use "git help -a" or