You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I always work on DocOnce documents inside a git repository, I had the idea of adding an option to include the short version of the git hash (e. g. 87b8b7f), so that this information can be included if an error is found in the document. The author will then be able to check with his git repository (which may very well be private) and determine if the error has already been corrected, which versions were affected, etc.
Implementation
This could be implemented by DocOnce capturing the output of the following command and embedding the hash somewhere in the document.
$ git rev-parse --short HEAD
87b8b7f
Aesthetical considerations
It seems logical to me to place the hash together with the date, but I don't that looks good. A more subtle placement would be in the footer.
The text was updated successfully, but these errors were encountered:
Description of idea
Since I always work on DocOnce documents inside a git repository, I had the idea of adding an option to include the short version of the git hash (e. g.
87b8b7f
), so that this information can be included if an error is found in the document. The author will then be able to check with his git repository (which may very well be private) and determine if the error has already been corrected, which versions were affected, etc.Implementation
This could be implemented by DocOnce capturing the output of the following command and embedding the hash somewhere in the document.
Aesthetical considerations
It seems logical to me to place the hash together with the date, but I don't that looks good. A more subtle placement would be in the footer.
The text was updated successfully, but these errors were encountered: