Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > The vast majority of error messages in Git's source code which report a
> > bug use the convention to prefix the message with "BUG:".
>
> Good thing to do.
>
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > From: Junio C Hamano
>
> Did I write this thing?
Yes, you did. It was db05d6194d3f9ea9e64163944961d5f6e85302be as part of
pu@{2016-06-15}.
> Having two sets of numbers that illustr
Hi Hannes,
On Thu, 30 Jun 2016, Johannes Sixt wrote:
> Am 29.06.2016 um 13:36 schrieb Johannes Schindelin:
> > @@ -955,9 +955,8 @@ static struct merge_file_info merge_file_1(struct
> > merge_options *o,
> >
> > if (!sha_eq(a->sha1, b->sha1))
> >
ne
> +}
Even when NO_MMAP is empty, there might be no Unix sockets available (such
as is the case on Windows). In any case, you really only want to skip
these tests when index-helper is not available, so would you mind
squashing this patch in?
-- snipsnap --
From: Johannes Schindelin
S
Hi Peff,
it is sad when bug reporters simply delete the part of our bug reporting
template that says: "I searched for existing bug reports but did not find
any".
It saves the reporters a few minutes... and spends the time of you and me
in the hour range.
In this particular case, the bug report i
Hi Peff,
On Fri, 1 Jul 2016, Jeff King wrote:
> - for external programs run as "git foo", you get _two_ times.
I considered doing this in my work-around, but decided against it because
I deemed it too inelegant to call it twice.
But your patch series has more benefits than just fixing the ass
Hi Peff,
On Fri, 1 Jul 2016, Jeff King wrote:
> This has been an accident-waiting-to-happen for a long time,
> but wasn't triggered until recently because it involves one
> of those programs actually calling system_path(). That
> happened with git-credential-store in v2.8.0 with ae5f677
> (lazily
Hi Peff,
On Fri, 1 Jul 2016, Jeff King wrote:
> I waffled between the two mechanisms. Opinions welcome.
I am happy you took the cmd_main() approach: we do have to play some
tricks on Windows, in particular in some upcoming changes that support
building with MS Visual C++ (we want to ensure that
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > There are a couple of places where return values indicating errors
> > are ignored. Let's teach them manners.
> >
> > Signed-off-by: Johannes Schindelin
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > A truly libified function does not die() just for fun.
>
> The sentence is wasting bits. After all, a helper function in
> run-once-and-exit program does not die() just for fun, eith
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > It can be puzzling to see that was_tracked() tries to match an index
> > entry by name even if cache_name_pos() returned a negative value. Let's
> > clarify that cache_name_pos
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > diff --git a/merge-recursive.c b/merge-recursive.c
> > index 6ab7dfc..bb075e3 100644
> > --- a/merge-recursive.c
> > +++ b/merge-recursive.c
> > @@ -266,8 +266,10 @@
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > @@ -743,6 +741,8 @@ static int update_file_flags(struct merge_options *o,
> > int update_cache,
> > int update_wd)
> > .
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > - cp.git_cmd = 1;
> > + init_merge_options(&o);
> > +
> > + o.branch1 = "HEAD";
> > + his_tree_name = xstrfmt("%.*s", linelen
Hi Peff,
On Fri, 1 Jul 2016, Jeff King wrote:
> On Fri, Jul 01, 2016 at 10:04:44AM +0200, Johannes Schindelin wrote:
>
> > On Fri, 1 Jul 2016, Jeff King wrote:
> >
> > > I waffled between the two mechanisms. Opinions welcome.
> >
> > I am happy you took
Hi Yannis,
On Fri, 1 Jul 2016, Ioannis Kappas wrote:
> Johannes Schindelin gmx.de> writes:
>
> > [...]
> >
> > My more immediate concern is MSYS2 (the POSIX-emulating basis of Git
> > for Windows), and I opened a Pull Request there:
> >
> > h
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > It is technically allowed, as per C89, for functions' return type to
> > be complete structs (i.e. *not* just pointers to structs), but it is
> > bad practice.
>
>
Hi Peff,
On Thu, 30 Jun 2016, Jeff King wrote:
> On Thu, Jun 30, 2016 at 10:42:37AM +0200, Johannes Schindelin wrote:
>
> > > > The vast majority of error messages in Git's source code which report a
> > > > bug use the convention to prefix the message with &q
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > While developing patch series, it is a good practice to run the test
> > suite from time to time, just to make sure that obvious bugs are caught
> > early. With complex patch ser
Hi Peff,
On Thu, 30 Jun 2016, Jeff King wrote:
> On Wed, Jun 29, 2016 at 09:02:37AM +0200, Johannes Schindelin wrote:
>
> > It is the most convenient way to determine which tests failed after
> > running the entire test suite, in parallel, to look for left-over &quo
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > When trying to match a pattern in the commit subject, simply skip leading
> > blank lines in the commit message. This is consistent with the
> > pretty-printing machinery: it silent
Hi Peff,
On Fri, 1 Jul 2016, Jeff King wrote:
> On Fri, Jul 01, 2016 at 03:39:03PM +0200, Johannes Schindelin wrote:
>
> > > The description was sufficiently long that I didn't want to try
> > > repeating it, and opted for a reference instead. If you're plann
Hi Junio,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > I would like to propose this diff instead (it is larger, but with a net
> > savings of one line):
> >
> > -- snipsnap --
> > diff --git a/merge-recursive.c b/merge-re
Hi Junio,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> >> > A truly libified function does not die() just for fun.
> >>
> >> The sentence is wasting bits. After all, a helper function in
> >> run-once-and-exi
Hi Junio,
On Wed, 29 Jun 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > On Tue, 28 Jun 2016, Junio C Hamano wrote:
> >
> >> * jk/ansi-color (2016-06-23) 7 commits
> >> (merged to 'next' on 2016-06-28 at 354989c)
> >>
Hi Duy,
On Sat, 2 Jul 2016, Duy Nguyen wrote:
> On Wed, Jun 29, 2016 at 1:36 PM, Johannes Schindelin
> wrote:
> > @@ -955,9 +955,8 @@ static struct merge_file_info merge_file_1(struct
> > merge_options *o,
> >
> >
Hi Junio,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> >> that has a substring '-S"' in it to ensure that the codepath to
> >> parse --gpg-sign= on the command line of "rebase", and to the
> >> message we
Hi,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> * jk/common-main-2.8 (2016-07-01) 5 commits
> - common-main: call git_setup_gettext()
> - common-main: call restore_sigpipe_to_default()
> - common-main: call sanitize_stdfds()
> - common-main: call git_extract_argv0_path()
> - add an extra lev
Hi Junio,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> * jc/t2300-setup (2016-06-22) 1 commit
> (merged to 'next' on 2016-06-28 at 62b902a)
> + t2300: "git --exec-path" is not usable in $PATH on Windows as-is
>
> Portability fix for Windows.
>
> Will merge to 'master'.
Would you mind cherr
Hi Duy,
On Thu, 30 Jun 2016, Duy Nguyen wrote:
> On Thu, Jun 30, 2016 at 3:06 PM, Johannes Schindelin
> wrote:
> > Even when NO_MMAP is empty, there might be no Unix sockets available (such
> > as is the case on Windows). In any case, you really only want to skip
> >
Hi Junio,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> >> > saved_b2 = o->branch2;
> >> > o->branch1 = "Temporary merge branch 1";
> >> &g
Hi Dave,
On Sun, 3 Jul 2016, David Turner wrote:
> This addresses comments on v13:
> removed unnecessary no_mmap ifdef
> add an ifdef in unix-socket
> OS X fix for select()
> test improvement
Thanks.
Would you mind re-sending 20 & 21, they seem to have gotten lost. Or is
there a public reposito
Hi Dave,
On Sun, 3 Jul 2016, Johannes Schindelin wrote:
> On Sun, 3 Jul 2016, David Turner wrote:
>
> > This addresses comments on v13:
> > removed unnecessary no_mmap ifdef
> > add an ifdef in unix-socket
> > OS X fix for select()
> > test improvement
Hi Fabio,
On Mon, 4 Jul 2016, Fabio Porcedda wrote:
> How i can download the version 2.8.4?
> Trough the download link https://git-for-windows.github.io/ it's available
> only the latest version.
Please click on the "repository" link in the header of that web site. This
will take you to the Gi
Hi Chris,
On Tue, 5 Jul 2016, Christoph Michelbach wrote:
> Hi, I noticed that the instructions on https://git-scm.com/book/en/v2/G
> etting-Started-Installing-Git don't work without dh-autoreconf
> installed on an apt-get system which isn't listed on that site. Can you
> fix that or tell me whom
Hi Tarun,
On Tue, 5 Jul 2016, tarun patanwar wrote:
> We are trying to integrate GIT with Siebel 8.1 for source code control.
> We are not able to progress further since there seems to be no
> documentation available for the same.
Would you kindly explain what Siebel is, and what purpose the bat
nt
with the de facto rule.
Signed-off-by: Johannes Schindelin
---
builtin/ls-files.c | 3 ++-
builtin/update-index.c | 2 +-
grep.c | 8
imap-send.c| 4 ++--
merge-recursive.c | 15 +++
sha1_file.c| 4 ++--
trailer
exact match do we need to look harder for any
matching entry in stage 2.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 19 +--
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index e51f8fc..66ce27c 100644
--- a/
patch.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 6 +++---
wt-status.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 9849439..e51f8fc 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -956,7 +
. Now that I addressed
concerns such as fixing translated bug reports, I would appreciate thorough
reviews with a focus on the critical parts of the code, those that could
result in regressions.
Johannes Schindelin (17):
Verify that `git pull --rebase` shows the helpful advice when failin
Signed-off-by: Johannes Schindelin
---
t/t5520-pull.sh | 30 ++
1 file changed, 30 insertions(+)
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index 3159956..b281d6f 100755
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
@@ -255,6 +255,36 @@ test_expect_success
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 0eb23a6..81836f2 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -191,25 +191,26 @@ static voi
re already prepared to detect negative return
values to indicate errors and to behave as previously: exit with code 128
(which is the same thing that die() does, after printing the message).
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 59 +++-
There are a couple of places where return values indicating errors
are ignored. Let's teach them manners.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 66
error messages into the output buffer
when the caller asked not to flush the output buffer, for two reasons:
1) to retain the correct output order, and 2) to allow the caller to
suppress *all* output.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 17 +
merge-recursive.h
ance of the Git developer community.
Let's start changing that by using the variable name "her_tree" for an
equal number of years out of fairness, and change to the gender neutral
"their_tree" after that.
Signed-off-by: Johannes Schindelin
---
builtin/am.c | 16 ++
buffers are flushed even when
the return value indicates an error.
The first two changes were introduced through earlier commits in this
patch series, and this commit addresses the third one.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 2 +-
1 file changed, 1 insertion(+), 1
ater patch.
Signed-off-by: Johannes Schindelin
---
builtin/checkout.c | 4 +++-
builtin/merge.c| 2 ++
sequencer.c| 4
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c
index c3486bd..14312f7 100644
--- a/builtin/checkout.c
+++
of Git's functions. Therefore, the error value -1 naturally is
handled correctly, and we do not have to take care of it specifically.
Signed-off-by: Johannes Schindelin
---
builtin/am.c | 49 -
1 file changed, 16 insertions(+), 33 deletions(-)
duced such a return type.
Besides, by converting this construct to pass in the struct, we can now
start returning a value that can indicate errors in future patches. This
will help the current effort to libify merge-recursive.c.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c
It is possible that a tree cannot be written (think: disk full). We
will want to give the caller a chance to clean up instead of letting
the program die() in such a case.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
or further
processing by the caller. If the caller asked for that, we will then
also write the error messages into the output buffer. This is necessary
to give the caller more control not only how to react in case of errors
but also control how/if to display the error messages.
Signed-off-by
, because we exited after the
operation anyway. Ever since cherry-pick learned to pick a commit range,
however, this memory leak had the potential of becoming a problem.
Signed-off-by: Johannes Schindelin
---
builtin/checkout.c | 1 +
merge-recursive.c | 2 ++
sequencer.c| 1 +
3 files changed
e for
the next patch where we will convert all of the die() calls in the same
function to go through the free_buf return path instead.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 196 +-
1 file changed, 121 insertions(+), 75 dele
Hi Tarun,
On Tue, 5 Jul 2016, tarun patanwar wrote:
> Siebel is a Oracle Product for CRM implementation, just like SAP and
> SalesForce. So Siebel as a product provides option to integrate any
> third party Source Control tool with it.
>
> Integration between Siebel and Source Control tool is fa
Hi Duy,
On Sat, 2 Jul 2016, Duy Nguyen wrote:
> You're changing the string and adding more work to translators. So
> either leave the string untouched, or drop _().
Thanks. I addressed that concern in v2. Could you please now have a look at
the parts of the patch series which could possibly regr
Hi Peff,
On Wed, 29 Jun 2016, Jeff King wrote:
> I haven't thought hard specifically about merge bases computation, so
> perhaps that is a case that isn't helped at all.
I guess it is not helped by generation numbers.
But then, we often ask: "is commit A an ancestor of commit B" e.g. to
check w
ed by inserting a simple and
clear comment.
Signed-off-by: Johannes Schindelin
---
Another patch from the rebase--helper queue.
Published-As: https://github.com/dscho/git/releases/tag/clarify-opt-end-v1
builtin/revert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/builtin/rever
Hi Kuba,
On Tue, 5 Jul 2016, Jakub Narębski wrote:
> W dniu 2016-07-05 o 13:23, Johannes Schindelin pisze:
> > diff --git a/builtin/ls-files.c b/builtin/ls-files.c
> > index f02e3d2..00ea91a 100644
> > --- a/builtin/ls-files.c
> > +++ b/builtin/ls-files.c
> >
Hi Duy,
ever since I started working extensively with worktrees, I end up with
these funny gc problems, like broken links and stale reflogs.
Is it maybe possible that the reflogs (which are per-worktree now) are not
traversed completely when gc'ing (which is *not* per-worktree)?
Ciao,
Dscho
--
T
Hi Peff & Jacob,
On Tue, 5 Jul 2016, Jacob Keller wrote:
> On Tue, Jul 5, 2016 at 1:44 PM, Jeff King wrote:
> > On Tue, Jul 05, 2016 at 04:28:20PM -0400, Jeff King wrote:
> >
> > Something like the patch below.
> >
> > I admit this isn't buggy _now_, so this is potentially just churn. It
> > doe
Hi Peff,
On Tue, 5 Jul 2016, Jeff King wrote:
> By the way, I notice that the error message when concat fails is just:
>
> if (parse_options_concat(options, ARRAY_SIZE(options), cp_extra))
> die(_("program error"));
>
> Should this become:
>
> die("BUG: not enough room to conca
Hi Peff,
On Tue, 5 Jul 2016, Jeff King wrote:
> + ALLOC_ARRAY(ret, st_add3(a_len, b_len, 1));
> + for (i = 0; i < a_len; i++)
> + ret[i] = a[i];
> + for (i = 0; i < b_len; i++)
> + ret[a_len + i] = b[i];
> + ret[a_len + b_len] = b[b_len]; /* final OPTION_EN
Hi Dave,
On Sun, 3 Jul 2016, David Turner wrote:
> @@ -357,10 +359,29 @@ static const char * const usage_text[] = {
> NULL
> };
>
> +static void request_kill(void)
> +{
> + int fd = unix_stream_connect(git_path("index-helper.sock"));
> +
> + if (fd >= 0) {
> + write_i
Hi Michael,
On Wed, 6 Jul 2016, Michael J Gruber wrote:
> Johannes Schindelin venit, vidit, dixit 06.07.2016 09:01:
>
> > BTW Jacob, would you terribly mind cutting the quoted parts properly (I
> > cut 112 lines)? It may not seem like much, but I seem to spend more and
> &g
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > On Fri, 1 Jul 2016, Junio C Hamano wrote:
> >
> >> * jc/t2300-setup (2016-06-22) 1 commit
> >> (merged to 'next' on 2016-06-28 at 62b902a)
> >>
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > Of course I agree that it would be very nice to have a test at a later
> > stage that does exercise GPG if it is available. But would it really
> > be so terrible to have a (simple
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> I think that amounts to the following single patch, which I cherry
> picked from the topic in Dscho's repository he mentioned earlier.
That patch would be fine by me, too.
Thanks,
Dscho
--
To unsubscribe from this list: send the line "unsubs
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > This is the second iteration of the long-awaited re-roll of the attempt to
> > avoid spawning merge-recursive from the builtin am and use merge_recursive()
> > directly instead.
>
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > To understand why we're not done yet, the crucial point is *not* that the
> > return value encodes the insert position. The crucial point is that
> > despite asking for an in
Hi Duy,
On Wed, 6 Jul 2016, Duy Nguyen wrote:
> On Tue, Jul 5, 2016 at 1:23 PM, Johannes Schindelin
> wrote:
> > The vast majority of error messages in Git's source code which report a
> > bug use the convention to prefix the message with "BUG:".
> >
>
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), i.e. for
> > almost 11 years already,...
> > ...Let's start changing that by using the variable name "he
ance of the Git developer community.
Let's start changing that by using the variable name "her_tree" for an
equal number of years out of fairness, and change to the gender neutral
"their_tree" after that.
Signed-off-by: Johannes Schindelin
---
Published-As: https://githu
Hi,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> David Turner writes:
>
> > Signed-off-by: David Turner
> > ---
> > .mailmap | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/.mailmap b/.mailmap
> > index e5b4126..edcae89 100644
> > --- a/.mailmap
> > +++ b/.mailmap
> > @@ -46,6 +
Hi Mike,
On Thu, 7 Jul 2016, Mike Hommey wrote:
> On Thu, Jul 07, 2016 at 01:47:19PM +0200, Johannes Schindelin wrote:
> > Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), i.e. for
> > almost 11 years already, we demonstrated our disrespect to the pioneers
Hi Kuba,
On Thu, 7 Jul 2016, Jakub Narębski wrote:
> Instead of nebulous "fairness" (i.e., be unfair in other direction),
> [...]
There is nothing nebulous about it.
Ciao,
Dscho
nt
with the de facto rule.
Signed-off-by: Johannes Schindelin
---
builtin/ls-files.c | 3 ++-
builtin/update-index.c | 2 +-
grep.c | 8
imap-send.c| 4 ++--
merge-recursive.c | 15 +++
sha1_file.c| 4 ++--
trailer
v2 rebased on top of pu (resolving many
merge conflicts in the process that are hidden from the interdiff)
This patch series touches rather important code. Now that I addressed
concerns such as fixing translated bug reports, I would appreciate thorough
reviews with a focus on the critical part
error messages into the output buffer
when the caller asked not to flush the output buffer, for two reasons:
1) to retain the correct output order, and 2) to allow the caller to
suppress *all* output.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 17 +
merge-recursive.h
Signed-off-by: Johannes Schindelin
---
t/t5520-pull.sh | 30 ++
1 file changed, 30 insertions(+)
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index 5d4880e..217b416 100755
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
@@ -255,6 +255,36 @@ test_expect_success
patch.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 05b9789..ea0df22 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -983,7 +983,7 @@ static struct
duced such a return type.
Besides, by converting this construct to pass in the struct, we can now
start returning a value that can indicate errors in future patches. This
will help the current effort to libify merge-recursive.c.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c
re already prepared to detect negative return
values to indicate errors and to behave as previously: exit with code 128
(which is the same thing that die() does, after printing the message).
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 63 +++-
or further
processing by the caller. If the caller asked for that, we will then
also write the error messages into the output buffer. This is necessary
to give the caller more control not only how to react in case of errors
but also control how/if to display the error messages.
Signed-off-by
exact match do we need to look harder for any
matching entry in stage 2.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 30 ++
1 file changed, 14 insertions(+), 16 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index ea0df22..469741d 1
There are a couple of places where return values indicating errors
are ignored. Let's teach them manners.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 46
Git's functions. Therefore, the error value -1 naturally is
handled correctly, and we do not have to take care of it specifically.
Signed-off-by: Johannes Schindelin
---
builtin/am.c | 63 ++--
1 file changed, 23 insertions(+), 40
e for
the next patch where we will convert all of the die() calls in the same
function to go through the free_buf return path instead.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 199 +-
1 file changed, 123 insertions(+), 76 dele
It is possible that a tree cannot be written (think: disk full). We
will want to give the caller a chance to clean up instead of letting
the program die() in such a case.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
ater patch.
Signed-off-by: Johannes Schindelin
---
builtin/checkout.c | 4 +++-
builtin/merge.c| 2 ++
sequencer.c| 4
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 27c1a05..07dea3b 100644
--- a/builtin/checkout.c
+++
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 205ea04..ad5b961 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -191,25 +191,26 @@ static voi
, because we exited after the
operation anyway. Ever since cherry-pick learned to pick a commit range,
however, this memory leak had the potential of becoming a problem.
Signed-off-by: Johannes Schindelin
---
builtin/checkout.c | 1 +
merge-recursive.c | 2 ++
sequencer.c| 1 +
3 files changed
buffers are flushed even when
the return value indicates an error.
The first two changes were introduced through earlier commits in this
patch series, and this commit addresses the third one.
Signed-off-by: Johannes Schindelin
---
merge-recursive.c | 2 +-
1 file changed, 1 insertion(+), 1
Hi Junio,
On Wed, 6 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> > Okay, so here is the deal: on the development machine where this was
> > developed, I do not have gpg installed. So please take this test case just
> > to make sure that things
x27;s law by being lenient.
Signed-off-by: Johannes Schindelin
---
t/t3415-rebase-autosquash.sh | 9 +
1 file changed, 9 insertions(+)
diff --git a/t/t3415-rebase-autosquash.sh b/t/t3415-rebase-autosquash.sh
index 9b71a49..48346f1 100755
--- a/t/t3415-rebase-autosquash.sh
+++ b/t/t3415-r
.
The upcoming rebase--helper patches will address this bug, therefore we
do not need to make the current autosquash code even more complex than
it already is, just to fix this bug.
Signed-off-by: Johannes Schindelin
---
t/t3415-rebase-autosquash.sh | 24
1 file changed
;edit' operation.
We really should test that the interactive rebase signs the commits
properly, iff GPG is available. This test is left for later.
Signed-off-by: Johannes Schindelin
---
t/t3404-rebase-interactive.sh | 8
1 file changed, 8 insertions(+)
diff --git a/t/t3
introduce a regression (this
test actually helped me debug and fix a regression in some previous
revision of the rebase--helper)
Johannes Schindelin (3):
t3404: add a test for the --gpg-sign option
rebase -i: demonstrate a bug with --autosquash
rebase -i: we allow extra spaces after
Hi Junio,
On Thu, 7 Jul 2016, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
> >> I doubt this kind fo distraction is desirable in the middle of a
> >> seriously heavy series like this one. As a standalone clean-up to
> >> turn these directly to &quo
Hi,
On Thu, 7 Jul 2016, Jeff Hostetler wrote:
> Tools interacting with Git repositories may need to know the complete
> state of the working directory. For efficiency, it would be good to have
> a single command to obtain this information.
>
> We already have a `--porcelain` mode intended for to
401 - 500 of 7666 matches
Mail list logo