How to make github follow directory history after renames?

前端 未结 3 1608
清酒与你
清酒与你 2020-12-02 16:48

Once a directory is renamed, \"git log\" no longer shows its history, unless you force it to, by using \"git log --follow\".

Is there a way to force the \"history\"

3条回答
  •  死守一世寂寞
    2020-12-02 17:36

    I've sent a mail to support@github.com (salutations removed):

    Will "git --follow" functionality ever be implemented on Github? If yes, where can I track its progress?

    (By "git --follow", I mean a way to easily see the object revisions before a rename. Currently, when an item is renamed, Github doesn't offer an easy way to display the directory / file history.)

    Response:

    > Will "git --follow" functionality ever be implemented on Github? If yes, where can I track its progress?

    This is something a few other users have requested as well -- we might add it in the future. We currently don't have a public issue tracker, but I'll put another +1 next to it on the Feature Request List™ for the team to see.

    So, "git --follow" is unfortunately not supported yet.

    To get such functionality in the meantime, I guess you could write a user script that looks up the hash of the parent object, (recursively) look up its history and render the result.

提交回复
热议问题