Re-add the ability to view or edit the latest zet
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
5a64827825
commit
df9fa52c21
3 changed files with 37 additions and 10 deletions
|
@ -82,6 +82,12 @@ func GetAllZets() []int {
|
|||
return sorted
|
||||
}
|
||||
|
||||
func GetLatestZet() int {
|
||||
z := GetAllZets()
|
||||
|
||||
return z[len(z)-1]
|
||||
}
|
||||
|
||||
func SearchZets(query string) []int {
|
||||
zets, err := execGitCommand("grep", "-i", "--name-only", "--word-regex", query)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue