Git development
 help / color / mirror / Atom feed
* [PATCH] git-merge: record merge strategy in the log message on auto resolved merges
@ 2007-06-06  8:24 Gerrit Pape
  0 siblings, 0 replies; 4+ messages in thread
From: Gerrit Pape @ 2007-06-06  8:24 UTC (permalink / raw)
  To: Junio C Hamano, git

If a strategy module auto resolved the merge cleanly, record the used
strategy in the log message, e.g.:

  Merge branch 'maint' using strategy ours

Signed-off-by: Gerrit Pape <pape@smarden.org>
---

I personally find this useful especially for the 'ours' strategy.

 git-merge.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-merge.sh b/git-merge.sh
index 981d69d..b661f74 100755
--- a/git-merge.sh
+++ b/git-merge.sh
@@ -440,7 +440,8 @@ done
 if test '' != "$result_tree"
 then
     parents=$(git-show-branch --independent "$head" "$@" | sed -e 's/^/-p /')
-    result_commit=$(printf '%s\n' "$merge_msg" | git-commit-tree $result_tree $parents) || exit
+    result_commit=$(printf '%s\n' "$merge_msg using strategy $wt_strategy" |
+	git-commit-tree $result_tree $parents) || exit
     finish "$result_commit" "Merge made by $wt_strategy."
     dropsave
     exit 0
-- 
1.5.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] git-merge: record merge strategy in the log message on auto resolved merges
@ 2007-06-25  7:16 Gerrit Pape
  2007-06-25  7:50 ` Junio C Hamano
  2007-06-25  7:53 ` Johannes Schindelin
  0 siblings, 2 replies; 4+ messages in thread
From: Gerrit Pape @ 2007-06-25  7:16 UTC (permalink / raw)
  To: Junio C Hamano, git

If a strategy module auto resolved the merge cleanly, record the used
strategy in the log message, e.g.:

  Merge branch 'maint' using strategy ours

Signed-off-by: Gerrit Pape <pape@smarden.org>
---

> I personally find this useful especially for the 'ours' strategy.
Resend, maybe it's not that interesting, there was no followup when sent
the first time.

 git-merge.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-merge.sh b/git-merge.sh
index 981d69d..b661f74 100755
--- a/git-merge.sh
+++ b/git-merge.sh
@@ -440,7 +440,8 @@ done
 if test '' != "$result_tree"
 then
     parents=$(git-show-branch --independent "$head" "$@" | sed -e 's/^/-p /')
-    result_commit=$(printf '%s\n' "$merge_msg" | git-commit-tree $result_tree $parents) || exit
+    result_commit=$(printf '%s\n' "$merge_msg using strategy $wt_strategy" |
+	git-commit-tree $result_tree $parents) || exit
     finish "$result_commit" "Merge made by $wt_strategy."
     dropsave
     exit 0
-- 
1.5.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-merge: record merge strategy in the log message on auto resolved merges
  2007-06-25  7:16 [PATCH] git-merge: record merge strategy in the log message on auto resolved merges Gerrit Pape
@ 2007-06-25  7:50 ` Junio C Hamano
  2007-06-25  7:53 ` Johannes Schindelin
  1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2007-06-25  7:50 UTC (permalink / raw)
  To: Gerrit Pape; +Cc: git

Gerrit Pape <pape@smarden.org> writes:

> If a strategy module auto resolved the merge cleanly, record the used
> strategy in the log message, e.g.:
>
>   Merge branch 'maint' using strategy ours
>
> Signed-off-by: Gerrit Pape <pape@smarden.org>
> ---
>
>> I personally find this useful especially for the 'ours' strategy.

I really do not think we want to do this, especially when the
user did not specify anything unusual like "ours".

At least, exclude recursive and octopus out of it, please.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-merge: record merge strategy in the log message on auto resolved merges
  2007-06-25  7:16 [PATCH] git-merge: record merge strategy in the log message on auto resolved merges Gerrit Pape
  2007-06-25  7:50 ` Junio C Hamano
@ 2007-06-25  7:53 ` Johannes Schindelin
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2007-06-25  7:53 UTC (permalink / raw)
  To: Gerrit Pape; +Cc: Junio C Hamano, git

Hi,

On Mon, 25 Jun 2007, Gerrit Pape wrote:

> If a strategy module auto resolved the merge cleanly, record the used
> strategy in the log message

Why only when it merged cleanly? If that information is useful, it is 
_especially_ useful when you had conflicts, so that you know how to 
recreate the merge?

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-25  7:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25  7:16 [PATCH] git-merge: record merge strategy in the log message on auto resolved merges Gerrit Pape
2007-06-25  7:50 ` Junio C Hamano
2007-06-25  7:53 ` Johannes Schindelin
  -- strict thread matches above, loose matches on Subject: below --
2007-06-06  8:24 Gerrit Pape

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox