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

git reset HEAD~ deletes recorded time #89

Open
diego-betto opened this issue Oct 4, 2018 · 1 comment
Open

git reset HEAD~ deletes recorded time #89

diego-betto opened this issue Oct 4, 2018 · 1 comment

Comments

@diego-betto
Copy link

I've noticed that if you use git reset HEAD~ to undo a commit will result in a lost of gtm entries.

Any clue?

@mschenk42
Copy link
Member

That is correct. When you commit, gtm calculates the commit time (via a post-commit hook) and files based on what is in the .gtm directory in the root of the project and then removes the processed editor events. The time is then stored in a git note associated with the commit. If you reset HEAD~1 it doesn't have anyway to restore the original editor events that are used to calculate the time.

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

2 participants