Bug 286146 - [new port] textproc/git-who: Git blame for file trees
Summary: [new port] textproc/git-who: Git blame for file trees
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-16 19:45 UTC by Yusuf Yaman
Modified: 2025-06-24 13:27 UTC (History)
3 users (show)

See Also:


Attachments
textproc/git-who.patch (5.14 KB, patch)
2025-04-16 19:46 UTC, Yusuf Yaman
no flags Details | Diff
Screenshot of the program output (274.67 KB, image/png)
2025-04-16 19:47 UTC, Yusuf Yaman
no flags Details
textproc/git-who.patch (5.11 KB, patch)
2025-06-22 21:04 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
devel/git-who.patch (4.98 KB, patch)
2025-06-24 07:42 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman freebsd_committer freebsd_triage 2025-04-16 19:45:53 UTC

    
Comment 1 Yusuf Yaman freebsd_committer freebsd_triage 2025-04-16 19:46:49 UTC
Created attachment 259623 [details]
textproc/git-who.patch

Unlike `git blame`, which can tell you who wrote a line of code, git-who tells
you the people responsible for entire components or subsystems in a codebase.
You can think of git-who sort of like `git blame` but
for file trees rather than individual files.

WWW:	https://github.com/sinclairtarget/git-who

Poudriere testport passes on 142amd64-default. Also pet'd port{clippy,fmt,lint}.

Thanks in advance.
Comment 2 Yusuf Yaman freebsd_committer freebsd_triage 2025-04-16 19:47:13 UTC
Created attachment 259624 [details]
Screenshot of the program output
Comment 3 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-08 21:20:02 UTC
Thanks for a new port submission.

It's been a while since you have filed this PR. Are you still interested in getting this into the ports tree? If so, can you update the patch and resubmit? Upstream has updated to 1.1.
Comment 4 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-22 21:04:03 UTC
Created attachment 261491 [details]
textproc/git-who.patch

> Are you still interested in getting this into the ports tree?
Yes :)

> can you update the patch and resubmit? Upstream has updated to 1.1.
consider it done.


Thanks!
Comment 5 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-23 21:06:57 UTC
(In reply to Yusuf Yaman from comment #4)

Thanks for updating the patch.

This is what I failed to notice at the first review. But I think "devel" is more appropriate category than "textproc" because the port is a kind of development statistics tools on git repositories.

Another comment is about post-extract stage. Is "${MKDIR} vendor" necessary? The vendor directory is already present at this point in time. So it seems the command is redundant.
Comment 6 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-24 07:42:48 UTC
Created attachment 261526 [details]
devel/git-who.patch

(In reply to Hiroki Tagato from comment #5)

> But I think "devel" is more appropriate category than "textproc" because the port is a kind of development statistics tools on git repositories.

Right, i agree with you.

> Is "${MKDIR} vendor" necessary?

I found out that it isn't necessary, thanks.
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-06-24 12:52:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7fd991b5a5495d3fbffe3906d06e0707bbfa9c83

commit 7fd991b5a5495d3fbffe3906d06e0707bbfa9c83
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-04-16 19:45:20 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-06-24 12:51:52 +0000

    devel/git-who: new port: Git blame for file trees

    Unlike `git blame`, which can tell you who wrote a line of code, git-who tells
    you the people responsible for entire components or subsystems in a codebase.
    You can think of git-who sort of like `git blame` but
    for file trees rather than individual files.

    WWW:    https://github.com/sinclairtarget/git-who

    PR:             286146
    Reported by:    Yusuf Yaman <nxjoseph@protonmail.com> (new maintainer)

 devel/Makefile                        |  1 +
 devel/git-who/Makefile (new)          | 28 ++++++++++++++++++++++++++++
 devel/git-who/distinfo (new)          | 15 +++++++++++++++
 devel/git-who/files/modules.txt (new) | 24 ++++++++++++++++++++++++
 devel/git-who/pkg-descr (new)         |  4 ++++
 5 files changed, 72 insertions(+)
Comment 8 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-24 12:53:56 UTC
Committed, thanks!
Comment 9 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-24 12:54:38 UTC
(In reply to Hiroki Tagato from comment #8)
Thanks!

I now wondered that if it would be better if i use post-patch instead of post-extract?
Comment 10 Hiroki Tagato freebsd_committer freebsd_triage 2025-06-24 13:25:18 UTC
(In reply to Yusuf Yaman from comment #9)

What makes you think so?

I personally think post-extract is fine because modules.txt is about downloaded (in our case, extracted) vendored modules.
Comment 11 Yusuf Yaman freebsd_committer freebsd_triage 2025-06-24 13:27:44 UTC
(In reply to Hiroki Tagato from comment #10)

> I personally think post-extract is fine because modules.txt is about downloaded (in our case, extracted) vendored modules.

That's fine too but i feel like if we are replacing a file in WRKSRC, it should be called in a patch stage. I guess not too much important here.