Skip to contentSkip to conversation

Kill git-resolve.sh

PATCH In review Petr Baudis 3 participants 5 messages Jun 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kill git-resolve.sh

Seriously, is anyone still using this thing? It's collecting dust and blocking the name for something potentially useful like a tool for user-friendly marking of resolved conflicts or resolving index conflicts.

We've loved you when Git was young, now thank you and please go away. ;-)

---

 .gitignore                    |    1 
 Documentation/git-resolve.txt |   36 --------------
 Documentation/git.txt         |    3 -
 Makefile                      |    2 -
 git-resolve.sh                |  108 -----------------------------------------
 5 files changed, 1 insertions(+), 149 deletions(-)
.gitignore +0 -1
index 0ffe14a..f89bbc6 100644
@@ -92,7 +92,6 @@ git-repo-config
 git-request-pull
 git-rerere
 git-reset
-git-resolve
 git-rev-list
 git-rev-parse
 git-revert
Documentation/git-resolve.txt deleted +0 -36
deleted file mode 100644
index 4e57c2b..0000000
@@ -1,36 +0,0 @@
-git-resolve(1)
-==============
-
-NAME
-----
-git-resolve - Merge two commits
-
-
-SYNOPSIS
---------
-'git-resolve' <current> <merged> <message>
-
-DESCRIPTION
------------
-Given two commits and a merge message, merge the <merged> commit
-into <current> commit, with the commit log message <message>.
-
-When <current> is a descendant of <merged>, or <current> is an
-ancestor of <merged>, no new commit is created and the <message>
-is ignored.  The former is informally called "already up to
-date", and the latter is often called "fast forward".
-
-
-Author
-------
-Written by Linus Torvalds <[email protected]> and
-Dan Holmsand <[email protected]>.
-
-Documentation
---------------
-Documentation by David Greaves, Junio C Hamano and the git-list <[email protected]>.
-
-GIT
----
-Part of the gitlink:git[7] suite
-
Documentation/git.txt +0 -3
index 744c38d..a2efd17 100644
@@ -336,9 +336,6 @@ gitlink:git-rerere[1]::
 gitlink:git-reset[1]::
 	Reset current HEAD to the specified state.
 
-gitlink:git-resolve[1]::
-	Merge two commits.
-
 gitlink:git-revert[1]::
 	Revert an existing commit.
 
Makefile +1 -1
index 58848e4..6a7c408 100644
@@ -169,7 +169,7 @@ SCRIPT_SH = \
 	git-merge-one-file.sh git-parse-remote.sh \
 	git-pull.sh git-rebase.sh \
 	git-repack.sh git-request-pull.sh git-reset.sh \
-	git-resolve.sh git-revert.sh git-sh-setup.sh \
+	git-revert.sh git-sh-setup.sh \
 	git-tag.sh git-verify-tag.sh \
 	git-applymbox.sh git-applypatch.sh git-am.sh \
 	git-merge.sh git-merge-stupid.sh git-merge-octopus.sh \
git-resolve.sh deleted +0 -108

108 lines not on this page · raw message

#1 lore raw
Quoted 7 lines · Petr Baudis

Seriously, is anyone still using this thing? It's collecting dust and blocking the name for something potentially useful like a tool for user-friendly marking of resolved conflicts or resolving index conflicts.

We've loved you when Git was young, now thank you and please go away. ;-)

I've always wanted to do this at some point. Perhaps add a big red warning to git-resolve.sh right now and say "after the next 'master' release this will go away" to its stdout for a few weeks to find out who screams?

On a very related note, we should prepare plan to deprecate merge-recursive.py. My preference is:

(1) rename merge-recursive.py to merge-recursive-old.py, make it available as "recursive-old" strategy.

install git-merge-recur as git-merge-recursive. Calling for "recur" or "recursive" strategy gets the same thing from this point on.

(2) remove merge-recur synonym once people who are using "USE_RECUR_FOR_RECURSIVE" or "merge.twohead = recur" to use the bleeding edge migrate.

and I think step (1) can happen fairly soon. Maybe immediately after the next release from the "master".

Perhaps that is the good timing to remove git-resolve.sh as well. Or maybe immediately before that release? I dunno, and I do not think anybody cares really much.

#2 lore raw

PATCH 1/1 Deprecate git-resolve.sh

Seriously, is anyone still using this thing? It's collecting dust and blocking the name for something potentially useful like a tool for user-friendly marking of resolved conflicts or resolving index conflicts.

We've loved you when Git was young, now thank you and please go away. ;-)

This makes git-resolve.sh print a big deprecation warning and sleep a bit for extra annoyance. It should be removed completely after the next release.

---

I won't touch git-merge-recursive.py because I really have no clue how
those fancy merge drivers work.

 git-resolve.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
git-resolve.sh +4 -0
index a7bc680..729ec65 100755
@@ -5,6 +5,10 @@ #
 # Resolve two trees.
 #
 
+echo 'WARNING: This command is DEPRECATED and will be removed very soon.' >&2
+echo 'WARNING: Please use git-merge or git-pull instead.' >&2
+sleep 2
+
 USAGE='<head> <remote> <merge-message>'
 . git-sh-setup
 
#3 lore raw
In reply to Junio C Hamano

Dear diary, on Sun, Sep 24, 2006 at 12:12:01AM CEST, I got a letter where Junio C Hamano <[email protected]> said that...

Quoted 2 lines

On a very related note, we should prepare plan to deprecate merge-recursive.py.

While we are busy deprecating and removing stuff, we should also:

* probably finally get rid of git-ssh-upload and git-ssh-pull (mentioned in another thread already)
* make git-annotate alias to git-blame -c? (and probably print a deprecation warning)

Signature · 5 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#4 lore raw
In reply to Junio C Hamano
Quoted 29 lines · Junio C Hamano
Quoted 7 lines · Petr Baudis

Seriously, is anyone still using this thing? It's collecting dust and blocking the name for something potentially useful like a tool for user-friendly marking of resolved conflicts or resolving index conflicts.

We've loved you when Git was young, now thank you and please go away. ;-)

I've always wanted to do this at some point. Perhaps add a big red warning to git-resolve.sh right now and say "after the next 'master' release this will go away" to its stdout for a few weeks to find out who screams?

On a very related note, we should prepare plan to deprecate merge-recursive.py. My preference is:

(1) rename merge-recursive.py to merge-recursive-old.py, make it available as "recursive-old" strategy.

install git-merge-recur as git-merge-recursive. Calling for "recur" or "recursive" strategy gets the same thing from this point on.

(2) remove merge-recur synonym once people who are using "USE_RECUR_FOR_RECURSIVE" or "merge.twohead = recur" to use the bleeding edge migrate.

Quoted 6 lines

and I think step (1) can happen fairly soon. Maybe immediately after the next release from the "master".

Perhaps that is the good timing to remove git-resolve.sh as well. Or maybe immediately before that release? I dunno, and I do not think anybody cares really much.

On the fairly unrelated note, would the next release be 1.4.3, or would it be 1.5.0 (the packed refs, the new index format, ...)?

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git