git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Git Mailing List <git@vger.kernel.org>, Elijah Newren <newren@gmail.com>
Subject: Re: squash! Merge branch 'ps/test-chmtime-get'
Date: Fri, 20 Apr 2018 17:12:26 +0900	[thread overview]
Message-ID: <xmqqtvs6b8k5.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <cb9ae7a4-88eb-9f74-1596-d24ed2dd4371@kdbg.org> (Johannes Sixt's message of "Thu, 19 Apr 2018 19:50:24 +0200")

Johannes Sixt <j6t@kdbg.org> writes:

> Junio,
>
> you may want to squash this into your merge commit of branch
> ps/test-chmtime-get (today it is fa57c0871fc9)
>
> -- Hannes
>
> diff --git a/t/helper/test-chmtime.c b/t/helper/test-chmtime.c
> index daeddc1cbc..aa22af48c2 100644
> --- a/t/helper/test-chmtime.c
> +++ b/t/helper/test-chmtime.c
> @@ -25,7 +25,7 @@
>   *
>   * To print only the mtime use --get:
>   *
> - *	test-chmtime --get file
> + *	test-tool chmtime --get file
>   *
>   * To set the mtime to current time:
>   *
> @@ -33,7 +33,7 @@
>   *
>   * To set the file mtime offset to +1 and print the new value:
>   *
> - *	test-chmtime --get +1 file
> + *	test-tool chmtime --get +1 file
>   *
>   */
>  #include "test-tool.h"

Thanks.

It might be a good idea to make a merge where one branch renames and
both branches make changes to the contents to always signal a
failure in auto-merge and require manual inspection of the result
even when the content level 3-way merge cleanly resolves to avoid a
gotcha like this.  If the renaming side had to modify existing
contents (i.e. it had to update "test-chmtime" to "test-tool
chmtime" for a feature that existed in the common ancestor), then it
is plausible that the updating side that introduced changes to the
contents (i.e. a newly added "test-chmtime --get") needs a similar
adjustment, which is what your patch shows.  On the other hand, if
the renaming side did a pure rename without content change, and the
other side updated contents, it is much less likely that we need to
adjust the new material added on the updating side for the rename.

We would be introducing a case where the entry for each of the three
stages is still present in the index even though there is no
conflict markers in the working tree files if we did so, so there
may be some stuff that needs adjusting to the fallout from such a
change (e.g.  "rerere remaining" might get confused).

      reply	other threads:[~2018-04-20  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19 17:50 squash! Merge branch 'ps/test-chmtime-get' Johannes Sixt
2018-04-20  8:12 ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqtvs6b8k5.fsf@gitster-ct.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=j6t@kdbg.org \
    --cc=newren@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).