-
Notifications
You must be signed in to change notification settings - Fork 3
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
apply gawd directly on git commits #1
Comments
I tend to disagree with this proposal. The same way that |
I actually saw "gawd" as an alternative to "git diff", not "diff". And "git diff" provides the option to simply compute the diff for a given commit, showing the changes between that commit and the next one. Similarly, "gawd" could be applied to a given commit, and compute all the changes found in all of the workflow files in that commit (w.r.t. the next commit, similar to how git diff does it). I agree that it is useful to have a workflow diff tool that can be unaware of git and GitHub, but this does not exclude the tool of supporting diffs on commits as well. |
The underlying tool used by git when doing a diff can be configured in a .gitconfig file, so if one wants to use gawd to perform diff operations between commits or branches, it is enough to change the default tool in the .gitconfig file. AFAIK, one can even specify that a specific tool should be used for a given file format/path (need to be checked), so perhaps we can already mention this in the documentation (with a practical example). |
Yes indeed, if it is as easy as that, then this should be documented, together with an example of how to do it, and also be mentioned in the associated tool paper. |
I haven't tested it yet, but this should do the work (or at least provide some pointers):
First line defines an additional diff command (using gawd). The It seems there's a way to apply the two last lines on "all repositories", by defining a global
... where
|
It could be useful to use the tool by providing as input just a commit reference in some git repo and a reference to a yaml file in that commit. In that case, the tool would apply the diff to that specific file in that commit, w.r.t. to previous available version of that file, in order to return the diff with all of the changes that were made by that commit to the file.
In the same vein, it would be useful to have the tool do the same thing for all yaml workflow files corresponding to given commit. (This would correspond to applying the tool several times, once for each yaml workflow file found in the commit.
The text was updated successfully, but these errors were encountered: