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 Schindelin <Johannes.Schindelin@gmx.de>
Cc: Jeff King <peff@peff.net>,
	 Matthew Rollings <admin@stealthcopter.com>,
	Stelian Pop <stelian@popies.net>,
	 git@vger.kernel.org
Subject: Re: [PATCH] contrib: drop hg-to-git script
Date: Fri, 22 Mar 2024 08:58:16 -0700	[thread overview]
Message-ID: <xmqqjzlu2r8n.fsf@gitster.g> (raw)
In-Reply-To: <01de5e16-a4ee-47df-03e6-67f5f0d601a7@gmx.de> (Johannes Schindelin's message of "Fri, 22 Mar 2024 08:31:28 +0100 (CET)")

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> While I have no objection to dropping this script, I am reluctant to drop
> it without leaving anything helpful in place. I am thinking about
> something like a `README.md` that would contain helpful information for
> any interested reader.

Years ago, I lost the illusion that our tree is the place for all
users who want to improve their Git experience to come and they try
to find related software in our contrib/ section.

Those with specific needs (e.g., "A project uses Mercuial; I want
its history in Git because I am used to it more") will never come to
our contrib/ as their first place to look, but they may still find
us in https://letmegooglethat.com/?q=mercurial+to+git if we left an
otherwise empty directory there.

Those with curiosity without specific needs (e.g., "what kind of
interesting enhancements around Git are there") are unlikely to come
to our contrib/ section either, as it offers too small a collection,
but more importantly, a directory with README and nothing else is
one more place they have to look at for no interesting information.
If we want to be really helpful to these folks, we need a curated
collection that is properly maintained.

While some directories under contrib/ may have been well maintained,
I do not think we have been good stewards for most directories in
there that do not have upstream author's involvement in maintaining
them.  If 6 months down the road a better alternative for cinnabar
or remote-hg appears, I doubt anybody will update such a README file
to add mention of it.  Even if it did, I highly doubt anybody will
come to our contrib/ area to find out about it---they will find out
about it elsewhere.

I am aware that we have precedence.  contrib/hooks/multimail and
contrib/emacs are two examples that lost almost everything but still
have tombstone README.  But these README are not kept up to date to
help their intended audiences.  The only people it _might_ help to
have such tombstone README are those who say "Oh, I thought we had
Hg to git in contrib/---what happened to it?" and they are better
served by "git log contrib/" that will find the commit that explains
why we decided to drop it back when we did.

>> The hg-to-git script is full of command injection vulnerabilities
>> against malicious branch and tag names. It's also old and largely
>> unmaintained; the last commit was over 4 years ago, and the last code
>> change before that was from 2013. Users are better off with a modern
>> remote-helper tool like cinnabar or remote-hg.

The approach will not give them any false expectation that the
"modern tool" are updated in the historical record to tell them
about better alternative that appeared after hg-to-git was removed,
unlike tombstone README that we _could_ be maintaining but without
any intention to do so.

So, I dunno.  I very much appreciate your desire to be helpful to
the users, but in this case the effort is misguided and not being
helping the users very much.  

If we were a major part of the sources for Git related information
and there were little external information, READMEs that are
somewhat stale were much much better than no READMEs at all.  But
such days are over a decade ago and having README that we plan to
let go stale has dubious value, I would have to say.


  parent reply	other threads:[~2024-03-22 15:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  9:48 [PATCH] contrib: drop hg-to-git script Jeff King
2024-03-20 14:39 ` Junio C Hamano
2024-03-22  7:31 ` Johannes Schindelin
2024-03-22  8:36   ` Stelian Pop
2024-03-22 16:48     ` Junio C Hamano
2024-03-22 15:58   ` Junio C Hamano [this message]
2024-03-22 23:43     ` Jeff King
2024-03-23 18:49       ` Junio C Hamano

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=xmqqjzlu2r8n.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=admin@stealthcopter.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=stelian@popies.net \
    /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).