From: Laszlo Papp <lpapp@kde.org>
To: git@vger.kernel.org
Subject: Re: git log --follow for directories
Date: Wed, 20 May 2015 09:20:58 +0000 (UTC) [thread overview]
Message-ID: <loom.20150520T111434-930@post.gmane.org> (raw)
In-Reply-To: xmqqsias8rvy.fsf@gitster.dls.corp.google.com
Junio C Hamano <gitster <at> pobox.com> writes:
>
> Laszlo Papp <lpapp <at> kde.org> writes:
>
> > Is there any benefit about having it like it is today or is it just
> > the usual "no one has implemented it yet"?
>
> It actually is even more sketchy than that. A single file following
> was done merely as a checkbox item that works majority of the time,
> and any mergy history that renames the file on one side of the side
> branch but not on the other may not truly follow it.
>
Well, in worst case, why not have something like --follow-dirs, then?
The case at hand is that we unfortunately named a directory based on the
codename of some software for the time.
Now, we have improved that software and the codename is different
accordingly. Now, instead of "pastcodename", I would change the directory
name to "src" to be future proof, but here, I face these difficulties:
1) The directory name is stuck with some ancient codename and it therefore
will be confusing for the rest of the life cycle for this project.
2) We get unfollowable directories. At best, we could use some scripts to
work this around, but why not address this directly in git?
I think renaming a directory without losing the history would be really cool
to have, one way or another. If that requires a separate option, I am happy
with that, but what I would really like to avoid is not being able to rename
directories without losing the history.
Note that I am speaking from user point of view. I do not know the
nitty-gritty technical details, but that is just implementation details as
far as I am concerned, anyway.
next prev parent reply other threads:[~2015-05-20 9:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 13:56 git log --follow for directories Laszlo Papp
2015-05-19 16:16 ` Junio C Hamano
2015-05-20 9:20 ` Laszlo Papp [this message]
2015-05-19 23:55 ` Jeff King
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20150520T111434-930@post.gmane.org \
--to=lpapp@kde.org \
--cc=git@vger.kernel.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.