File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ local actions = require("neogit.popups.branch.actions")
6
6
local config_actions = require (" neogit.popups.branch_config.actions" )
7
7
8
8
function M .create ()
9
- local current_branch = git .repo . head . branch or " "
9
+ local current_branch = git .branch . current ()
10
10
local show_config = current_branch ~= " " and current_branch ~= " (detached)"
11
11
local pull_rebase_entry = git .config .get (" pull.rebase" )
12
12
local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
5
5
local actions = require (" neogit.popups.branch_config.actions" )
6
6
7
7
function M .create (branch )
8
- branch = branch or git .repo . head . branch
8
+ branch = branch or git .branch . current ()
9
9
local g_pull_rebase = git .config .get_global (" pull.rebase" )
10
10
local pull_rebase_entry = git .config .get (" pull.rebase" )
11
11
local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local popup = require("neogit.lib.popup")
5
5
local M = {}
6
6
7
7
function M .create ()
8
- local current = git .repo . head . branch
8
+ local current = git .branch . current ()
9
9
local show_config = current ~= " " and current ~= " (detached)"
10
10
local pull_rebase_entry = git .config .get (" pull.rebase" )
11
11
local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
5
5
local M = {}
6
6
7
7
function M .create ()
8
- local current = git .repo . head . branch
8
+ local current = git .branch . current ()
9
9
10
10
local p = popup
11
11
.builder ()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local actions = require("neogit.popups.rebase.actions")
5
5
local M = {}
6
6
7
7
function M .create (commit )
8
- local branch = git .repo . head . branch
8
+ local branch = git .branch . current ()
9
9
local in_rebase = git .repo .rebase .head
10
10
local base_branch = actions .base_branch ()
11
11
You can’t perform that action at this time.
0 commit comments