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

Option to preserve commit logs #41

Open
ikedam opened this issue Jul 15, 2018 · 5 comments
Open

Option to preserve commit logs #41

ikedam opened this issue Jul 15, 2018 · 5 comments

Comments

@ikedam
Copy link
Contributor

ikedam commented Jul 15, 2018

gitmask squashes all commits into one commit with the message "anonymous commit" by ghost.
Though it removes identifications completely, it also loses much information in the change. Commit messages are often important in development.

It would be nice if there's an option to preserve commit logs and replaces the committer and the author with ghost to remove identifications:

  • Maintainers can get the outline of the request from commit messages.
  • The pull request can be more descriptive by splitting commits in appropriate logical units.

I believe it can be done by running this command in the branch created from the bundle instead of merging that branch into the target branch and squashing commits:

git rebase -f  ${destBranchName} -x "git commit --amend --reset-author"
@AnalogJ
Copy link
Owner

AnalogJ commented Feb 23, 2019

This is definitely an interesting option, however I think the default should still be squashing the commits together.
It's possible to use commit datetime analysis to narrow down probable author countries.

We could add options via query string parameters, but I'm not sure if they would be associated as s3 file metadata.

@ikedam
Copy link
Contributor Author

ikedam commented Feb 24, 2019

the default should still be squashing the commits together.

I agree. This should be provided with an option parameter.
I’ll see I can use s3 meta data, like tags.

@j-rewerts
Copy link

I can see this being useful as well. @ikedam Are you working on this?

@ikedam
Copy link
Contributor Author

ikedam commented Apr 6, 2019

@j-rewerts
Unfortunately, not yet.
I’m a newbie to nodejs and serverless framework and needs much effort to develop this.

@AnalogJ
Copy link
Owner

AnalogJ commented Jun 7, 2020

@ikedam @j-rewerts
I just released a new version of Gitmask that acts as a true git remote.

It doesn't yet support preserving git commit messages, but I'll be adding support for that in the near future.

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

3 participants