[RFC/PATCH 03/18] Document weird bug in octopus merges via testcases

2016-04-07 Thread Elijah Newren
...and check all other merge strategies with testcases while we're at it. When the index has a staged change before running git merge, most the time git merge will error out telling the user that the merge operation would toss their merged changes unless they commit them first. There are two exce

[RFC/PATCH 00/18] Add --index-only option to git merge

2016-04-07 Thread Elijah Newren
This patch series adds an --index-only flag to git merge, the idea being to allow a merge to be performed entirely in the index without touching (or even needing) a working tree. The core fix, to merge-recursive, was actually quite easy. The recursive merge logic already had the ability to ignore

[RFC/PATCH 02/18] Avoid checking working copy when creating a virtual merge base

2016-04-07 Thread Elijah Newren
There were a few cases in merge-recursive that could result in a check for the presence of files in the working copy while trying to create a virtual merge base. These were rare and innocuous, but somewhat illogical. The two cases were: * When there was naming conflicts (e.g. a D/F conflict) a

[RFC/PATCH 17/18] git-merge-resolve.sh: support --index-only option

2016-04-07 Thread Elijah Newren
Signed-off-by: Elijah Newren --- git-merge-resolve.sh| 12 ++-- t/t6043-merge-index-only.sh | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/git-merge-resolve.sh b/git-merge-resolve.sh index c9da747..ed4a25b 100755 --- a/git-merge-resolve.sh +++ b/git-mer

[RFC/PATCH 05/18] Add testcase for --index-only merges needing the recursive strategy

2016-04-07 Thread Elijah Newren
Signed-off-by: Elijah Newren --- t/t6043-merge-index-only.sh | 170 1 file changed, 170 insertions(+) create mode 100755 t/t6043-merge-index-only.sh diff --git a/t/t6043-merge-index-only.sh b/t/t6043-merge-index-only.sh new file mode 100755 index 000

[RFC/PATCH 09/18] Add testcase for --index-only merges with the ours strategy

2016-04-07 Thread Elijah Newren
This is almost trivial to make work, because we already know that the working tree will need no modifications, but lets test it for completeness anyway. Signed-off-by: Elijah Newren --- t/t6043-merge-index-only.sh | 32 1 file changed, 32 insertions(+) diff --gi

[RFC/PATCH 16/18] git-merge-one-file.sh: support --index-only option

2016-04-07 Thread Elijah Newren
Signed-off-by: Elijah Newren --- git-merge-one-file.sh | 44 +++- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/git-merge-one-file.sh b/git-merge-one-file.sh index 424b034..78efa00 100755 --- a/git-merge-one-file.sh +++ b/git-merge-one-file

[RFC/PATCH 13/18] Add --index-only support with read_tree_trivial merges, kind of

2016-04-07 Thread Elijah Newren
From: Elijah Newren This almost works. It creates the correct merge commit, updates the branch, but then if the repo is bare it leaves the index as it was before the merge (and if the repo is non-bare it updates the index). I'm totally lost as to why the testcase behaves differently in the bare

Re: [PATCH v3 1/2] refs: add a new function set_worktree_head_symref

2016-04-07 Thread Eric Sunshine
On Fri, Apr 8, 2016 at 2:37 AM, Kazuki Yamaguchi wrote: > On Thu, Apr 07, 2016 at 05:20:10PM -0400, Eric Sunshine wrote: >> On Sun, Mar 27, 2016 at 10:37 AM, Kazuki Yamaguchi wrote: >> > +int set_worktree_head_symref(const char *gitdir, const char *target) >> > +{ >> > + static struct lock_

Re: [PATCH v3 1/2] refs: add a new function set_worktree_head_symref

2016-04-07 Thread Kazuki Yamaguchi
On Thu, Apr 07, 2016 at 05:20:10PM -0400, Eric Sunshine wrote: > On Sun, Mar 27, 2016 at 10:37 AM, Kazuki Yamaguchi wrote: > > Add a new function set_worktree_head_symref, to update HEAD symref for > > the specified worktree. > > > > To update HEAD of a linked working tree, > > create_symref("work

Re: [PATCH v3 09/16] index-helper: use watchman to avoid refreshing index with lstat()

2016-04-07 Thread Junio C Hamano
David Turner writes: > On Thu, 2016-04-07 at 15:52 -0700, Junio C Hamano wrote: >> Junio C Hamano writes: >> >> > > +untracked = data + len + 8 + bitmap_size; >> > >> > This breaks compilation as data here is of type (void *). >> > >> > There may be similar breakages in this p

Greetings to you

2016-04-07 Thread Mrs Estelle Amadieu
Greetings to you. My names are Mrs Estelle Amadieu, I live in Cote d'Ivoire, I want to entrust a huge amount of money in your care (USD 2. 5) million dollars for charity work in your country. I have been suffering from cancer I want to know if I can trust you to use these funds for charity/orp

Re: [PATCH v3 09/16] index-helper: use watchman to avoid refreshing index with lstat()

2016-04-07 Thread David Turner
On Thu, 2016-04-07 at 15:52 -0700, Junio C Hamano wrote: > Junio C Hamano writes: > > > > + untracked = data + len + 8 + bitmap_size; > > > > This breaks compilation as data here is of type (void *). > > > > There may be similar breakages in this patch. > > It turns out that this is th

Re: [PATCH v3 09/16] index-helper: use watchman to avoid refreshing index with lstat()

2016-04-07 Thread Junio C Hamano
Junio C Hamano writes: >> +untracked = data + len + 8 + bitmap_size; > > This breaks compilation as data here is of type (void *). > > There may be similar breakages in this patch. It turns out that this is the only one, and untracked = (char *)data + len + 8 + bitmap_size;

Re: [PATCH v3 09/16] index-helper: use watchman to avoid refreshing index with lstat()

2016-04-07 Thread Junio C Hamano
David Turner writes: > diff --git a/read-cache.c b/read-cache.c > index 59d892e..b6e9244 100644 > --- a/read-cache.c > +++ b/read-cache.c > @@ -1407,10 +1472,24 @@ static int read_watchman_ext(struct index_state > *istate, const void *data, > ewah_each_bit(bitmap, mark_no_watchman, istate)

Re: [PATCH 00/24] Yet another pre-refs-backend series

2016-04-07 Thread Junio C Hamano
David Turner writes: > We now have quite a large number of patches before we even get into > the meat of the pluggable refs backend series. So it's worth breaking > those out and getting them in before we get into the main series > (which Michael Haggerty swants to redesign a bit anyway). > > Th

Re: What's cooking in git.git (Apr 2016, #03; Thu, 7)

2016-04-07 Thread Junio C Hamano
Pranit Bauva writes: > On Fri, Apr 8, 2016 at 12:31 AM, Junio C Hamano wrote: >> Here are the topics that have been cooking. Commits prefixed with >> '-' are only in 'pu' (proposed updates) while commits prefixed with >> '+' are in 'next'. The ones marked with '.' do not appear in any of >> th

Re: [PATCH] format-patch: allow --no-patch to disable patch output

2016-04-07 Thread Eric Sunshine
On Thu, Apr 7, 2016 at 12:46 PM, Jacob Keller wrote: > The documentation for format-patch indicates that --no-patch wilL > suppress patch output. It also incorrectly mentions that -s will also > suppress the patch output, but this is incorrect because -s is used to > add the sign-off line first. F

Re: [PATCH v3 1/2] refs: add a new function set_worktree_head_symref

2016-04-07 Thread Eric Sunshine
On Sun, Mar 27, 2016 at 10:37 AM, Kazuki Yamaguchi wrote: > Add a new function set_worktree_head_symref, to update HEAD symref for > the specified worktree. > > To update HEAD of a linked working tree, > create_symref("worktrees/$work_tree/HEAD", "refs/heads/$branch", msg) > could be used. However

Re: What's cooking in git.git (Apr 2016, #03; Thu, 7)

2016-04-07 Thread Pranit Bauva
On Fri, Apr 8, 2016 at 12:31 AM, Junio C Hamano wrote: > Here are the topics that have been cooking. Commits prefixed with > '-' are only in 'pu' (proposed updates) while commits prefixed with > '+' are in 'next'. The ones marked with '.' do not appear in any of > the integration branches, but I

Paths handled differently by diff and checkout

2016-04-07 Thread Constantin Weißer
Hi, say I got a file called "asdf" somewhere in a subdirectory. I can do: git diff other_branch -- \*asdf and it will show me the diff *only* of that file (which is the only one that matches), so it works as expected. But if I do on the other hand: git checkout other_branch -- \*asdf I get: er

Fwd: Data loss when using "git stash -u" and ignored content in directories

2016-04-07 Thread Ulrich Buchgraber
Hello, A "git stash -u" cleans all untracked files (after storing them), and normally does not clean ignored files. But: It cleans ignored files within a directory, when the directory itself is not ignored (e.g. a "dir/*" ignore filter) and untracked. See the following reproduction sample. The l

Problem with duplicated commits due to a merge

2016-04-07 Thread alan
I help manage a Linux kernel repo for a large company. I have encountered an odd problem that I think should not exist, but does. At one point a merge was done from the development repo to the local branch. Two of the existing commits have the same change to the same location. At first glance they

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Jeff King
On Thu, Apr 07, 2016 at 12:56:26PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Yes, FWIW, those were the sites and reasons I identified last night. > > Your patch looks like the right thing to me. > > Thanks, let's do this then. I'd already anticipated your sign-off ;-). > > -- >8

Re: git segfaults on older Solaris releases

2016-04-07 Thread Jeff King
On Thu, Apr 07, 2016 at 12:37:53PM -0700, Junio C Hamano wrote: > -- >8 -- > Subject: setup.c: do not feed NULL to "%.*s" even with the precision 0 > > A recent update 75faa45a (replace trivial malloc + sprintf / strcpy > calls with xstrfmt, 2015-09-24) rewrote > > prepare an empty buffer

Re: git segfaults on older Solaris releases

2016-04-07 Thread Tom G. Christensen
On 07/04/16 20:50, Junio C Hamano wrote: Junio C Hamano writes: So perhaps this is all we need to fix your box. setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Yes that seems to work very well. I applied this patch to 2.8.0 and have completed a testsuite run on Solaris 2.6

Re: [PATCH] sequencer.c: fix detection of duplicate s-o-b

2016-04-07 Thread Willy Tarreau
Hi Christian, On Thu, Apr 07, 2016 at 04:06:59PM -0400, Christian Couder wrote: > On Wed, Apr 6, 2016 at 12:37 PM, Willy Tarreau wrote: > > On Wed, Apr 06, 2016 at 07:57:01AM -0700, Junio C Hamano wrote: > >> This seems to have been lost, perhaps because the top part that was > >> quite long didn

Re: [PATCH] sequencer.c: fix detection of duplicate s-o-b

2016-04-07 Thread Christian Couder
On Wed, Apr 6, 2016 at 12:37 PM, Willy Tarreau wrote: > On Wed, Apr 06, 2016 at 07:57:01AM -0700, Junio C Hamano wrote: >> This seems to have been lost, perhaps because the top part that was >> quite long didn't look like a patch submission message or something. > > Don't worry, we all know it's t

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Junio C Hamano
Jeff King writes: > Yes, FWIW, those were the sites and reasons I identified last night. > Your patch looks like the right thing to me. Thanks, let's do this then. I'd already anticipated your sign-off ;-). -- >8 -- From: Jeff King Subject: commit: do not ignore an empty message given by -m '

Re: git segfaults on older Solaris releases

2016-04-07 Thread Junio C Hamano
Jeff King writes: >> So perhaps this is all we need to fix your box. >> >> setup.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/setup.c b/setup.c >> index 3439ec6..b6c8aab 100644 >> --- a/setup.c >> +++ b/setup.c >> @@ -103,7 +103,7 @@ char *prefix_path_gently(co

[PATCH 11/24] resolve_ref_1(): eliminate local variable

2016-04-07 Thread David Turner
From: Michael Haggerty In place of `buf`, use `refname`, which is anyway a better description of what is being pointed at. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/refs/files-backend.c b/refs/file

[PATCH 07/24] t1430: improve test coverage of deletion of badly-named refs

2016-04-07 Thread David Turner
From: Michael Haggerty Check "branch -d broken...ref" Check various combinations of * Deleting using "update-ref -d" * Deleting using "update-ref --no-deref -d" * Deleting using "branch -d" in the following combinations of symref -> ref: * badname -> broken...ref * badname -> broken...ref (da

Re: git segfaults on older Solaris releases

2016-04-07 Thread Jeff King
On Thu, Apr 07, 2016 at 11:50:46AM -0700, Junio C Hamano wrote: > Junio C Hamano writes: > > > "Tom G. Christensen" writes: > > > >> The reason for the crash is simple, a null value was passed to the 's' > >> format for the *printf family of functions. > >> ... > >> Passing a null value to the

[PATCH 24/24] refs: on symref reflog expire, lock symref not referrent

2016-04-07 Thread David Turner
When locking a symbolic ref to expire a reflog, lock the symbolic ref (using REF_NODEREF) instead of its referent. Add a test for this. Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs/files-backend.c | 3 ++- t/t1410-reflog.sh| 10 ++ 2 files changed, 12 inserti

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Jeff King
On Thu, Apr 07, 2016 at 11:12:19AM -0700, Junio C Hamano wrote: > Jeff King writes: > > > I guessed that this might have come from the conversion of "message" > > form a pointer (which could be NULL) into a strbuf. And indeed, it looks > > like f956853 (builtin-commit: resurrect behavior for mul

[PATCH 21/24] check_aliased_update(): check that dst_name is non-NULL

2016-04-07 Thread David Turner
From: Michael Haggerty If there is an error in resolve_ref_unsafe(), it returns NULL. We check for this case, but not until after calling strip_namespace(). Instead, call strip_namespace() *after* the NULL check. Signed-off-by: Michael Haggerty --- builtin/receive-pack.c | 2 +- 1 file changed

[PATCH 08/24] resolve_missing_loose_ref(): simplify semantics

2016-04-07 Thread David Turner
From: Michael Haggerty Make resolve_missing_loose_ref() only responsible for looking up a packed reference, without worrying about whether we want to read or write the reference and without setting errno on failure. Move the other logic to the caller. Signed-off-by: Michael Haggerty --- refs/f

[PATCH 06/24] t1430: test for-each-ref in the presence of badly-named refs

2016-04-07 Thread David Turner
From: Michael Haggerty Signed-off-by: Michael Haggerty --- t/t1430-bad-ref-name.sh | 16 1 file changed, 16 insertions(+) diff --git a/t/t1430-bad-ref-name.sh b/t/t1430-bad-ref-name.sh index a963951..612cc32 100755 --- a/t/t1430-bad-ref-name.sh +++ b/t/t1430-bad-ref-name.sh @@

[PATCH 03/24] t1430: test the output and error of some commands more carefully

2016-04-07 Thread David Turner
From: Michael Haggerty Signed-off-by: Michael Haggerty --- t/t1430-bad-ref-name.sh | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/t/t1430-bad-ref-name.sh b/t/t1430-bad-ref-name.sh index c465abe..005e2b1 100755 --- a/t/t1430-bad-ref-name.sh +++ b/t/t1430-

[PATCH 10/24] resolve_ref_unsafe(): ensure flags is always set

2016-04-07 Thread David Turner
From: Michael Haggerty If the caller passes flags==NULL, then set it to point at a local scratch variable. This removes the need for a lot of "if (flags)" guards in resolve_ref_1() and resolve_missing_loose_ref(). Signed-off-by: Michael Haggerty --- refs/files-backend.c | 31 +-

[PATCH 18/24] fsck_head_link(): remove unneeded flag variable

2016-04-07 Thread David Turner
From: Michael Haggerty It is never read, so we can pass NULL to resolve_ref_unsafe(). Signed-off-by: Michael Haggerty --- builtin/fsck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/fsck.c b/builtin/fsck.c index 55eac75..3f27456 100644 --- a/builtin/fsck.c +++

[PATCH 09/24] resolve_ref_unsafe(): use for loop to count up to MAXDEPTH

2016-04-07 Thread David Turner
From: Michael Haggerty The loop's there anyway; we might as well use it. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/refs/files-backend.c b/refs/files-backend.c index c0cf6fd..101abba 100644 --- a/re

[PATCH 05/24] t1430: don't rely on symbolic-ref for creating broken symrefs

2016-04-07 Thread David Turner
From: Michael Haggerty It's questionable whether it should even work. Signed-off-by: Michael Haggerty --- t/t1430-bad-ref-name.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t1430-bad-ref-name.sh b/t/t1430-bad-ref-name.sh index cb815ab..a963951 100755 --- a/t/t143

[PATCH 04/24] t1430: clean up broken refs/tags/shadow

2016-04-07 Thread David Turner
From: Michael Haggerty Signed-off-by: Michael Haggerty --- t/t1430-bad-ref-name.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t1430-bad-ref-name.sh b/t/t1430-bad-ref-name.sh index 005e2b1..cb815ab 100755 --- a/t/t1430-bad-ref-name.sh +++ b/t/t1430-bad-ref-name.sh @@ -

[PATCH 20/24] checkout_paths(): remove unneeded flag variable

2016-04-07 Thread David Turner
From: Michael Haggerty It is never read, so we can pass NULL to resolve_ref_unsafe(). Signed-off-by: Michael Haggerty --- builtin/checkout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/checkout.c b/builtin/checkout.c index efcbd8f..ea2fe1c 100644 --- a/builtin

[PATCH 23/24] refs: move resolve_ref_unsafe into common code

2016-04-07 Thread David Turner
Now that resolve_ref_unsafe's only interaction with the backend is through read_raw_ref, we can move it into the common code. Later, we'll replace read_raw_ref with a backend function. Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs.c | 74 ++

[PATCH 19/24] cmd_merge(): remove unneeded flag variable

2016-04-07 Thread David Turner
From: Michael Haggerty It is never read, so we can pass NULL to resolve_ref_unsafe(). Signed-off-by: Michael Haggerty --- builtin/merge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/merge.c b/builtin/merge.c index 101ffef..c90ee51 100644 --- a/builtin/merge.

[PATCH 16/24] Inline resolve_ref_1() into resolve_ref_unsafe()

2016-04-07 Thread David Turner
From: Michael Haggerty resolve_ref_unsafe() wasn't doing anything useful anymore. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 31 +-- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/refs/files-backend.c b/refs/files-backend.c index f752

[PATCH 17/24] read_raw_ref(): change flags parameter to unsigned int

2016-04-07 Thread David Turner
From: Michael Haggerty read_raw_ref() is going to be part of the vtable for reference backends, so clean up its interface to use "unsigned int flags" rather than "int flags". Its caller still uses signed int for its flags arguments. But changing that would touch a lot of code, so leave it for now

[PATCH 00/24] Yet another pre-refs-backend series

2016-04-07 Thread David Turner
We now have quite a large number of patches before we even get into the meat of the pluggable refs backend series. So it's worth breaking those out and getting them in before we get into the main series (which Michael Haggerty swants to redesign a bit anyway). This set of patches should be applie

[PATCH 22/24] show_head_ref(): check the result of resolve_ref_namespace()

2016-04-07 Thread David Turner
From: Michael Haggerty Only use the result of resolve_ref_namespace() if it is non-NULL. Signed-off-by: Michael Haggerty --- http-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-backend.c b/http-backend.c index 8870a26..2148814 100644 --- a/http-backend.c

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Jeff King
On Thu, Apr 07, 2016 at 10:50:06AM +0100, Adam Dinwoodie wrote: > > PS Is there a previous thread? I see a couple people cc'd, including me, > >but I don't remember a previous discussion. Did I just forget it? > > No previous thread: I noticed the odd behaviour, and figured I'd report > it.

[PATCH 15/24] read_raw_ref(): manage own scratch space

2016-04-07 Thread David Turner
From: Michael Haggerty Instead of creating scratch space in resolve_ref_unsafe() and passing it down through resolve_ref_1 to read_raw_ref(), teach read_raw_ref() to manage its own scratch space. This reduces coupling across the functions at the cost of some extra allocations. Also, when read_raw

[PATCH 02/24] refs: move for_each_*ref* functions into common code

2016-04-07 Thread David Turner
Make do_for_each_ref take a submodule as an argument instead of a ref_cache. Since all for_each_*ref* functions are defined in terms of do_for_each_ref, we can then move them into the common code. Later, we can simply make do_for_each_ref into a backend function. Signed-off-by: David Turner Sig

[PATCH 14/24] files-backend: break out ref reading

2016-04-07 Thread David Turner
Refactor resolve_ref_1 in terms of a new function read_raw_ref, which is responsible for reading ref data from the ref storage. Later, we will make read_raw_ref a pluggable backend function, and make resolve_ref_unsafe common. Signed-off-by: David Turner Helped-by: Duy Nguyen Signed-off-by: Jun

[PATCH 12/24] resolve_ref_1(): reorder code

2016-04-07 Thread David Turner
From: Michael Haggerty There is no need to adjust *flags if we're just about to fail. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refs/files-backend.c b/refs/files-backend.c index 69ec903..60f1493 100644 --- a

[PATCH 13/24] resolve_ref_1(): eliminate local variable "bad_name"

2016-04-07 Thread David Turner
From: Michael Haggerty We can use (*flags & REF_BAD_NAME) for that purpose. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/refs/files-backend.c b/refs/files-backend.c index 60f1493..b865ba5 100644 --- a

[PATCH 01/24] refs: move head_ref{,_submodule} to the common code

2016-04-07 Thread David Turner
These don't use any backend-specific functions. These were previously defined in terms of the do_head_ref helper function, but since they are otherwise identical, we don't need that function. Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- refs.c | 23 ++

Re: git segfaults on older Solaris releases

2016-04-07 Thread Tom G. Christensen
On 07/04/16 20:32, Junio C Hamano wrote: "Tom G. Christensen" writes: The reason for the crash is simple, a null value was passed to the 's' format for the *printf family of functions. ... Passing a null value to the 's' format is explicitly documented as giving undefined results on Solaris, e

What's cooking in git.git (Apr 2016, #03; Thu, 7)

2016-04-07 Thread Junio C Hamano
Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding onto them. The 'master' branch now has the se

Re: git segfaults on older Solaris releases

2016-04-07 Thread David Turner
On Thu, 2016-04-07 at 11:50 -0700, Junio C Hamano wrote: > Junio C Hamano writes: > > > "Tom G. Christensen" writes: > > > > > The reason for the crash is simple, a null value was passed to > > > the 's' > > > format for the *printf family of functions. > > > ... > > > Passing a null value to t

Re: git segfaults on older Solaris releases

2016-04-07 Thread Junio C Hamano
Junio C Hamano writes: > "Tom G. Christensen" writes: > >> The reason for the crash is simple, a null value was passed to the 's' >> format for the *printf family of functions. >> ... >> Passing a null value to the 's' format is explicitly documented as >> giving undefined results on Solaris, ev

Re: [PATCH v3 03/16] index-helper: new daemon for caching index and related stuff

2016-04-07 Thread David Turner
On Thu, 2016-04-07 at 16:14 +0200, Johannes Schindelin wrote: > Hi, > > On Thu, 7 Apr 2016, Johannes Sixt wrote: > > > Am 07.04.2016 um 00:11 schrieb David Turner: > > > +static void share_index(struct index_state *istate, struct shm > > > *is) > > > +{ > > > + void *new_mmap; > > > + if (istate-

Re: git segfaults on older Solaris releases

2016-04-07 Thread Junio C Hamano
"Tom G. Christensen" writes: > The reason for the crash is simple, a null value was passed to the 's' > format for the *printf family of functions. > ... > Passing a null value to the 's' format is explicitly documented as > giving undefined results on Solaris, even on Solaris 11(2). Do you mean

git segfaults on older Solaris releases

2016-04-07 Thread Tom G. Christensen
Hello, While working on an update to the git packages in tgcware(1) I ran into segfaults when running the testsuite. Here's what it looks like on Solaris 7/SPARC: Core was generated by `/export/home/tgc/buildpkg/git/src/git-upstream/git update-index should-be-empty'. Program terminated wit

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Junio C Hamano
Jeff King writes: > I guessed that this might have come from the conversion of "message" > form a pointer (which could be NULL) into a strbuf. And indeed, it looks > like f956853 (builtin-commit: resurrect behavior for multiple -m > options, 2007-11-11) did that. Yikes. That is a quite ancient

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > Aren't there other cases where a short option needs to be > converted to a long one? As I already said, making internal call to libified part (perhaps in trailer.c) would make this part of conversation a moot point, but in general you can find argv_push(&c

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 10:30:02AM -0700, Junio C Hamano wrote: > "Michael S. Tsirkin" writes: > > > On Thu, Apr 07, 2016 at 09:55:29AM -0700, Junio C Hamano wrote: > >> "Michael S. Tsirkin" writes: > >> > >> > Allow -t as a short-cut for --trailer. > >> > > >> > Signed-off-by: Michael S. Tsirk

Re: [PATCH 3/4] builtin/am: read mailinfo from file

2016-04-07 Thread Matthieu Moy
"Michael S. Tsirkin" writes: > - strbuf_addbuf(&msg, &mi.log_message); > + > + if (strbuf_read_file(&log_msg, am_path(state, "msg"), 0) < 0) { > + die_errno(_("could not read '%s'"), am_path(state, "msg")); > + } Style: we omit the braces where not needed. -- Matthieu

Re: [PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Matthieu Moy
"Michael S. Tsirkin" writes: > it's sometimes useful to be able to pass output message of > git-mailinfo through git-interpret-trailers, > but that creates problems since that does not > include the subject and an empty line after that, > making interpret-trailers add an empty line. Nit: we usua

Re: [PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > No - but then I will need to re-run mailinfo to parse the result, > will I not? By the way, I suspect (if Christian did his implementation right when he did interpret-trailers) all these points may become moot. I haven't re-reviewed what is in interpret-trailers,

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 10:26:33AM -0700, Junio C Hamano wrote: > Matthieu Moy writes: > > >> I am in principle OK with the later step that teaches a single > >> letter option to end-user facing "git am" that would be turned into > >> "--trailer" when it calls out to "interpret-trailers" (I haven

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > On Thu, Apr 07, 2016 at 09:55:29AM -0700, Junio C Hamano wrote: >> "Michael S. Tsirkin" writes: >> >> > Allow -t as a short-cut for --trailer. >> > >> > Signed-off-by: Michael S. Tsirkin >> > --- >> >> As I do not think interpret-trailers is meant to be end-user

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 09:55:29AM -0700, Junio C Hamano wrote: > "Michael S. Tsirkin" writes: > > > Allow -t as a short-cut for --trailer. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > As I do not think interpret-trailers is meant to be end-user facing, > I am not sure I should be inte

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Junio C Hamano
Matthieu Moy writes: >> I am in principle OK with the later step that teaches a single >> letter option to end-user facing "git am" that would be turned into >> "--trailer" when it calls out to "interpret-trailers" (I haven't >> checked if 't' is a sensible choice for that single letter option, >

Re: [PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 10:00:37AM -0700, Junio C Hamano wrote: > "Michael S. Tsirkin" writes: > > > it's sometimes useful to be able to pass output message of > > git-mailinfo through git-interpret-trailers, > > but that creates problems since that does not > > include the subject and an empty l

Re: [PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Junio C Hamano
Junio C Hamano writes: > "Michael S. Tsirkin" writes: > >> it's sometimes useful to be able to pass output message of >> git-mailinfo through git-interpret-trailers, >> but that creates problems since that does not >> include the subject and an empty line after that, >> making interpret-trailers

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Matthieu Moy
Junio C Hamano writes: > "Michael S. Tsirkin" writes: > >> Allow -t as a short-cut for --trailer. >> >> Signed-off-by: Michael S. Tsirkin >> --- > > As I do not think interpret-trailers is meant to be end-user facing, > I am not sure I should be interested in this step. > > I am in principle OK

Re: [PATCH 3/4] builtin/am: read mailinfo from file

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 10:08:37AM -0700, Junio C Hamano wrote: > "Michael S. Tsirkin" writes: > > > Slightly slower, but will allow easy additional processing on it. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > I haven't read 4/4 yet, but can guess from what this patch does that > the

Re: [PATCH 3/4] builtin/am: read mailinfo from file

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > Slightly slower, but will allow easy additional processing on it. > > Signed-off-by: Michael S. Tsirkin > --- I haven't read 4/4 yet, but can guess from what this patch does that the next step would let others futz with the contents of the message that is on disk

Re: [PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > it's sometimes useful to be able to pass output message of > git-mailinfo through git-interpret-trailers, > but that creates problems since that does not > include the subject and an empty line after that, > making interpret-trailers add an empty line. > > Add a fla

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Junio C Hamano
"Michael S. Tsirkin" writes: > Allow -t as a short-cut for --trailer. > > Signed-off-by: Michael S. Tsirkin > --- As I do not think interpret-trailers is meant to be end-user facing, I am not sure I should be interested in this step. I am in principle OK with the later step that teaches a sing

[PATCH] format-patch: allow --no-patch to disable patch output

2016-04-07 Thread Jacob Keller
The documentation for format-patch indicates that --no-patch wilL suppress patch output. It also incorrectly mentions that -s will also suppress the patch output, but this is incorrect because -s is used to add the sign-off line first. Fix the documentation to remove the indication about -s. Fix bu

Re: [PATCH 4/4] builtin/am: passthrough -t and --trailer flags

2016-04-07 Thread Christian Couder
On Thu, Apr 7, 2016 at 11:23 AM, Michael S. Tsirkin wrote: > Pass -t and --trailer flags to git-reinterpret-trailers. s/git-reinterpret-trailers/git-interpret-trailers/ Thanks, Christian. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger

Re: [PATCH v5 0/6] tag: move PGP verification code to tag.c

2016-04-07 Thread Eric Sunshine
On Wed, Apr 6, 2016 at 11:40 PM, Santiago Torres wrote: >> > v5 (this): >> > Added helpful feedback by Eric >> > >> > * Reordering of the patches, to avoid temporal inclusion of a regression >> > * Fix typos here and there. >> > * Review commit messages, as some weren't representative of what t

Re: [PATCH] rebase: convert revert to squash on autosquash

2016-04-07 Thread Michael S. Tsirkin
On Thu, Apr 07, 2016 at 05:23:09PM +0200, Johannes Schindelin wrote: > Hi, > > On Thu, 7 Apr 2016, Michael S. Tsirkin wrote: > > > Reverts can typically be treated like squash. Eliminating both the > > original commit and the revert would be even nicer, but this seems a bit > > harder to impleme

[PATCH 4/4] builtin/am: passthrough -t and --trailer flags

2016-04-07 Thread Michael S. Tsirkin
Pass -t and --trailer flags to git-reinterpret-trailers. Signed-off-by: Michael S. Tsirkin --- builtin/am.c | 48 1 file changed, 48 insertions(+) diff --git a/builtin/am.c b/builtin/am.c index 4180b04..480c4c2 100644 --- a/builtin/am.c +++ b/bui

[PATCH 3/4] builtin/am: read mailinfo from file

2016-04-07 Thread Michael S. Tsirkin
Slightly slower, but will allow easy additional processing on it. Signed-off-by: Michael S. Tsirkin --- builtin/am.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/builtin/am.c b/builtin/am.c index d003939..4180b04 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -124

[PATCH 1/4] builtin/interpret-trailers.c: allow -t

2016-04-07 Thread Michael S. Tsirkin
Allow -t as a short-cut for --trailer. Signed-off-by: Michael S. Tsirkin --- builtin/interpret-trailers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/interpret-trailers.c b/builtin/interpret-trailers.c index b99ae4b..18cf640 100644 --- a/builtin/interpret-trailers

Re: [PATCH] rebase: convert revert to squash on autosquash

2016-04-07 Thread Johannes Schindelin
Hi, On Thu, 7 Apr 2016, Michael S. Tsirkin wrote: > Reverts can typically be treated like squash. Eliminating both the > original commit and the revert would be even nicer, but this seems a bit > harder to implement. Whoa. This rings a lot of alarm bells, very loudly. It seems you intend to int

[PATCH 0/4] git-am: use trailers to add extra signatures

2016-04-07 Thread Michael S. Tsirkin
I'm using git am to apply patches, and I like the ability to add arbitrary trailers instead of the standard Signed-off-by one. To this end, I have extended git am to call git interpret-trailers internally. This way I can add arbitrary signatures. For example, I have: [trailer "t"] key = T

[PATCH 2/4] builtin/interpret-trailers: suppress blank line

2016-04-07 Thread Michael S. Tsirkin
it's sometimes useful to be able to pass output message of git-mailinfo through git-interpret-trailers, but that creates problems since that does not include the subject and an empty line after that, making interpret-trailers add an empty line. Add a flag to bypass adding the blank line. Signed-o

[PATCH] rebase: convert revert to squash on autosquash

2016-04-07 Thread Michael S. Tsirkin
Reverts can typically be treated like squash. Eliminating both the original commit and the revert would be even nicer, but this seems a bit harder to implement. Signed-off-by: Michael S. Tsirkin --- git-rebase--interactive.sh | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --

Investment Abroad

2016-04-07 Thread JAQUES Gilbout
Dearest One, Good day! I am interested in establishing and operating a very viable business as a means of investment abroad with the Sum of US $ 9,500,000.00 I inherited from my Father which he deposited in Bahamas. My preference is any good profit yielding businesses you will suggest. My n

Re: [PATCH v3 03/16] index-helper: new daemon for caching index and related stuff

2016-04-07 Thread Johannes Schindelin
Hi, On Thu, 7 Apr 2016, Johannes Sixt wrote: > Am 07.04.2016 um 00:11 schrieb David Turner: > > +static void share_index(struct index_state *istate, struct shm *is) > > +{ > > + void *new_mmap; > > + if (istate->mmap_size <= 20 || > > + hashcmp(istate->sha1, > > + (unsigne

Насчет взыскания задолженности

2016-04-07 Thread Возврат долгов
Добрый день! Имеются ли у Вас должники в Москве? К примеру это могут быть контрагенты, которые долго тянут с оплатой счета. Я профессионально занимаюсь взысканием любых долгов для организаций в Москве. Если Вы столкнулись с ситуацией - долгой неуплаты счетов Вашими заказчиками - я хотела бы пр

Re: [PATCH] commit: --amend -m '' silently fails to wipe message

2016-04-07 Thread Adam Dinwoodie
On Thu, Apr 07, 2016 at 12:42:19AM -0400, Jeff King wrote: > On Wed, Apr 06, 2016 at 06:15:03PM +0100, Adam Dinwoodie wrote: > > `git commit --amend -m ''` seems to be an unambiguous request to blank a > > commit message, but it actually leaves the commit message as-is. That's > > the case regardl

Re: [PATCH] git-stash: Don't GPG sign when stashing changes

2016-04-07 Thread Johannes Schindelin
Hi, you dropped the Cc: list. So most likely Cameron won't get your mail nor any response to your mail. On Thu, 7 Apr 2016, daurnimator wrote: > Cameron Currie cameroncurrie.net> writes: > > This is helpful for folks with commit.gpgsign = true in their .gitconfig. > > > https://github.com/git/