Created
March 20, 2023 17:32
-
-
Save Sarctiann/eb05562af776153021d24f3998d826aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run | |
import v.pref { vexe_path } | |
import term { magenta } | |
system('v up') | |
chdir(dir(vexe_path()))! | |
c := magenta | |
version_getter_commands := ['./v_old version', './v version'] | |
vers := version_getter_commands.map(execute(it).output.trim_space()) | |
hashes := vers.map(it.split(' ').last()) | |
println('\ngit logs from: ${c(vers[0] + '...')} to: ${c(vers[1] + '...')}\n') | |
system('git log --oneline ${hashes[1]} ^${hashes[0]}^') | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tiny tool
This is a tool to update V and print all commit messages since the last v update.