Open ChrisBlom opened 7 years ago
I don't know of a good way to advise a function such that it 'inserts' functionality (as you do with magit-log-wash-rev
), but I'll note that getting the statuses for a given commit has been made much simpler (and no longer relies on hub
!).
I'm not sure how I feel about redefining magit functions. @tarsius, do you think there's a better way to insert a column into the reflog? Maybe a system similar to how sections are inserted into magit-status
?
Otherwise, we could always just have our own view in the meantime that shows the SHA, the commit message, and the overall status at that point.
@vermiculus i agree that overriding magit function is ugly, it was just the only way i could get it working at the time
If someone could explain to me how to insert a column in the reflog, I can take a shot at adding the CI status to the reflog without overriding magit's functions.
I'm not saying there's a better way; just that it's too fragile to release 😄 It's still a clever idea – I just hope there's support for it. We'll wait and see what tarsius thinks. A PR to magit to support this kind of thing is probably the only way we'll be able to do it as a plugin.
Showing the CI status for the current commit is really useful, i'd love to also be able to inspect the CI status of commits in the log view of magit. Currently I have a binding to open the relevant CI url to inspect this, but i'd prefer to view it within emacs.
I've tried to add a simple lookup to
magit-log-wash-rev
in magic-log.el to display the CI status after the commit, but is quite slow because it callshub ci-status
for each commit.Is there a better way to add the CI status to the log?