|
@@ -37,23 +37,9 @@ return {
|
|
|
{ remaining = true }
|
|
{ remaining = true }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- local branches = vim.split(vim.fn.system(
|
|
|
|
|
- "git branch --list --sort committerdate --format '%(refname) ||!|| %(committerdate:relative) ||!|| branch: %(refname:short) ||!|| %(authorname) ||!|| %(subject)' | tac"),
|
|
|
|
|
|
|
+ local results = vim.split(vim.fn.system(
|
|
|
|
|
+ "git log --branches=\\* --pretty='format:%H ||!|| %cr ||!|| %(decorate:prefix=,suffix=,separator= ) ||!|| %an ||!|| %s' --since='last month'"),
|
|
|
"\n")
|
|
"\n")
|
|
|
- local commits = vim.split(vim.fn.system(
|
|
|
|
|
- "git log --branches=\\* --pretty='format:%H ||!|| %cr ||!|| %(decorate:prefix=,suffix=,separator= ) ||!|| %an ||!|| %s'"),
|
|
|
|
|
- "\n")
|
|
|
|
|
- local results = {}
|
|
|
|
|
- for _, v in pairs(branches) do
|
|
|
|
|
- if string.len(v) > 10 then
|
|
|
|
|
- table.insert(results, v)
|
|
|
|
|
- end
|
|
|
|
|
- end
|
|
|
|
|
- for _, v in pairs(commits) do
|
|
|
|
|
- if string.len(v) > 10 then
|
|
|
|
|
- table.insert(results, v)
|
|
|
|
|
- end
|
|
|
|
|
- end
|
|
|
|
|
pickers.new(opts, {
|
|
pickers.new(opts, {
|
|
|
prompt_title = title,
|
|
prompt_title = title,
|
|
|
finder = finders.new_table({
|
|
finder = finders.new_table({
|