So, i want to add a time of commit within a specific file IF was modified. The problem is that the file is modified AFTER the commit not before the commit, with the obvious conclusion that pre-commit hook is run after the commit. What do i miss? how can i run a hook before the act of commiting? Thanks!
Asked
Active
Viewed 119 times
0
-
1Food for thought: https://stackoverflow.com/a/55583651/7976758, https://stackoverflow.com/a/12802592/7976758 – phd Mar 10 '20 at 19:53
-
thanks a lot for both explanation and solution (second link) :) – Adrian Sevcenco Mar 10 '20 at 21:50