Skip to content

Instantly share code, notes, and snippets.

@Sarctiann
Created March 20, 2023 17:32
Show Gist options
  • Save Sarctiann/eb05562af776153021d24f3998d826aa to your computer and use it in GitHub Desktop.
Save Sarctiann/eb05562af776153021d24f3998d826aa to your computer and use it in GitHub Desktop.
#!/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)
@Sarctiann
Copy link
Author

Tiny tool

This is a tool to update V and print all commit messages since the last v update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment