Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: infer reuse annotate --contributor value(s) from git #1108

Open
szymonmaszke opened this issue Nov 27, 2024 · 0 comments
Open

feat: infer reuse annotate --contributor value(s) from git #1108

szymonmaszke opened this issue Nov 27, 2024 · 0 comments

Comments

@szymonmaszke
Copy link

As in the title, currently I have the following alias/command defined (omitted other flags and arguments):

> reuse annotate --contributor="$(git config get user.name) <$(git config get user.email)>" 

It works okay, but has a few downsides, e.g.:

  • Not easily usable within other tools (e.g. pdm scripts as defined here)
  • Low visibility to users and feels somewhat hackish

One could implement by providing an additional boolean flag (let's say --contributor-from-git) and simply using subprocess.run(["git", "config", "user.name"] to avoid external dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant