I use yard to create documentation for my project. Even if we think that the documentation can be generated, and therefore does not really need to be a version, we decided to do this because it makes it easier to see the effect of code changes (comments) in the actual documentation.
The problem is that every time the kernel generates documentation, it changes the date at the beginning of each file, as a result of which all files are treated as modified.
Is there a way to tell git to ignore this line to determine if the files have been modified or, alternatively, a way to configure the yard so as not to restore the file if they are identical?
thank
Update
I know I can do a script or anything that clears files, if only the date has changed. So my question is that there is a git, .ie way if I read the diff driver information or should I make a clean script.
If I were going to the cleaning path, it would be better to do this using the git hook or integrating it into the document generation.
Ultimately, I'm interested in any other way to track changes due to a certain commit in the generated document.
I really did not explain what my problem is (and why I am trying to redo what is not needed), so we go.
Once upon a time, a small code modification twisted the documentation, so I could see the effect of committing on the documentation.
Example: I use modeline for vim (a comment in the first line of the file telling vim different information)
,
module A
.... some code
end
-
( 2 blank lines)
module A
.... some different code
end
, A Documentation of module A. , - (, ) (, modeline ), , modeline - A, vi : my vim setting.
, , , , . git, , , ( , , ).