@@ -94,6 +94,8 @@ to Neovim users.
9494 disable_context_highlighting = false,
9595 -- Disables signs for sections/items/hunks
9696 disable_signs = false,
97+ -- Path to git executable. Defaults to "git". Can be used to specify a custom git binary or wrapper script.
98+ git_executable = "git",
9799 -- Offer to force push when branches diverge
98100 prompt_force_push = true,
99101 -- Changes what mode the Commit Editor starts in. `true` will leave nvim in normal mode, `false` will change nvim to
@@ -113,12 +115,33 @@ to Neovim users.
113115 -- Show relative date by default. When set, use `strftime ` to display dates
114116 commit_date_format = nil,
115117 log_date_format = nil,
116- -- Used to generate URL's for branch popup action "pull request".
118+ -- Used to generate URL's for branch popup action "pull request" or opening a commit .
117119 git_services = {
118- ["github.com"] = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1 ",
119- ["bitbucket.org"] = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1 ",
120- ["gitlab.com"] = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name }",
121- ["azure.com"] = "https://dev.azure.com/${owner}/_git/${repository}/pullrequestcreate?sourceRef=${branch_name}&targetRef=${target }",
120+ ["github.com"] = {
121+ pull_request = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1 ",
122+ commit = "https://github.com/${owner}/${repository}/commit/${oid }",
123+ tree = "https://${host}/${owner}/${repository}/tree/${branch_name }",
124+ },
125+ ["bitbucket.org"] = {
126+ pull_request = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1 ",
127+ commit = "https://bitbucket.org/${owner}/${repository}/commits/${oid }",
128+ tree = "https://bitbucket.org/${owner}/${repository}/branch/${branch_name }",
129+ },
130+ ["gitlab.com"] = {
131+ pull_request = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name }",
132+ commit = "https://gitlab.com/${owner}/${repository}/-/commit/${oid }",
133+ tree = "https://gitlab.com/${owner}/${repository}/-/tree/${branch_name}?ref_type=heads ",
134+ },
135+ ["azure.com"] = {
136+ pull_request = "https://dev.azure.com/${owner}/_git/${repository}/pullrequestcreate?sourceRef=${branch_name}&targetRef=${target }",
137+ commit = "",
138+ tree = "",
139+ },
140+ ["codeberg.org"] = {
141+ pull_request = "https://${host}/${owner}/${repository}/compare/${branch_name }",
142+ commit = "https://${host}/${owner}/${repository}/commit/${oid }",
143+ tree = "https://${host}/${owner}/${repository}/src/branch/${branch_name }",
144+ },
122145 },
123146 -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf
124147 -- sorter instead. By default, this function returns `nil` .
@@ -147,11 +170,18 @@ to Neovim users.
147170 -- Flag description: https://git-scm.com/docs/git-branch#Documentation/git-branch.txt---sortltkeygt
148171 -- Sorting keys: https://git-scm.com/docs/git-for-each-ref#_options
149172 sort_branches = "-committerdate",
173+ -- Value passed to the `-- <commit_order> - order` flag of the `git log` command
174+ -- Determines how commits are traversed and displayed in the log / graph:
175+ -- "topo" topological order (parents always before children, good for graphs, slower on large repos)
176+ -- "date" chronological order by commit date
177+ -- "author-date" chronological order by author date
178+ -- "" disable explicit ordering (fastest, recommended for very large repos)
179+ commit_order = "topo"
150180 -- Default for new branch name prompts
151181 initial_branch_name = "",
152182 -- Change the default way of opening neogit
153183 kind = "tab",
154- -- Floating window style
184+ -- Floating window style
155185 floating = {
156186 relative = "editor",
157187 width = 0.8,
@@ -658,12 +688,17 @@ these yourself before the plugin loads, that will be respected. If they do not
658688exist, they will be created with sensible defaults based on your colorscheme.
659689
660690STATUS BUFFER
691+ NeogitNormal Normal text
692+ NeogitFloat Normal text when using a floating window
693+ NeogitFloatBorder Border wen using a floating window
661694NeogitBranch Local branches
662695NeogitBranchHead Accent highlight for current HEAD in LogBuffer
663696NeogitRemote Remote branches
664697NeogitObjectId Object's SHA hash
665698NeogitStash Stash name
666699NeogitFold Folded text highlight
700+ NeogitFoldColumn Column where folds are displayed
701+ NeogitSignColumn Column where signs are displayed
667702NeogitRebaseDone Current position within rebase
668703NeogitTagName Closest Tag name
669704NeogitTagDistance Number of commits between the tag and HEAD
@@ -1333,16 +1368,16 @@ Actions: *neogit_commit_popup_actions*
13331368 • Alter *neogit_commit_alter*
13341369 Create a squash commit, authoring the final message now.
13351370
1336- During a later rebase, when this commit gets squashed into it's targeted
1371+ During a later rebase, when this commit gets squashed into its targeted
13371372 commit, the original message of the targeted commit is replaced with the
13381373 message of this commit, without the user automatically being given a
13391374 chance to edit it again.
13401375
13411376 `git commit --fixup=amend:COMMIT --edit`
13421377
13431378 • Revise *neogit_commit_revise*
1344- Reword the message of an existing commit, without editing it's tree.
1345- Later, when the commit is squashed into it's targeted commit, a combined
1379+ Reword the message of an existing commit, without editing its tree.
1380+ Later, when the commit is squashed into its targeted commit, a combined
13461381 commit is created which uses the message of the fixup commit and the tree
13471382 of the targeted commit.
13481383
@@ -1578,7 +1613,7 @@ Actions: *neogit_pull_popup_actions*
15781613 pulled from and used to set `branch.<name> .pushRemote` .
15791614
15801615 • Pull into <current> from @{upstream} *neogit_pull_upstream*
1581- Pulls into the current branch from it's upstream counterpart. If that is
1616+ Pulls into the current branch from its upstream counterpart. If that is
15821617 unset, the user will be prompted to select a remote branch, which will
15831618 pulled from and set as the upstream.
15841619
@@ -1648,7 +1683,7 @@ Actions: *neogit_push_popup_actions*
16481683 and pushed to.
16491684
16501685 • Push <current> to @{upstream} *neogit_push_upstream*
1651- Pushes the current branch to it's upstream branch. If not set, then the
1686+ Pushes the current branch to its upstream branch. If not set, then the
16521687 user will be prompted to select a remote, which will be set as the
16531688 current branch's upstream and pushed to.
16541689
@@ -1770,13 +1805,13 @@ Arguments: *neogit_rebase_popup_args*
17701805
17711806Actions: *neogit_rebase_popup_actions*
17721807 • Rebase onto pushRemote *neogit_rebase_pushRemote*
1773- This action rebases the current branch onto it's pushRemote.
1808+ This action rebases the current branch onto its pushRemote.
17741809
17751810 When the pushRemote is not configured, then the user can first set it
17761811 before rebasing.
17771812
17781813 • Rebase onto upstream *neogit_rebase_upstream*
1779- This action rebases the current branch onto it's upstream branch.
1814+ This action rebases the current branch onto its upstream branch.
17801815
17811816 When the upstream is not configured, then the user can first set it
17821817 before rebasing.
@@ -2166,7 +2201,7 @@ Popup Builder *neogit_popup_builder*
21662201
21672202You can leverage Neogit's infrastructure to create your own popups and
21682203actions. For example, you can define actions as a function which will take the
2169- popup instance as it's argument:
2204+ popup instance as its argument:
21702205>lua
21712206 local function my_action(popup)
21722207 -- You can access the popup state (enabled flags) like so:
@@ -2194,7 +2229,7 @@ popup instance as it's argument:
21942229 -- A switch is a boolean CLI flag, like `-- no -verify `
21952230 :switch("s", "my-switch", "My switch")
21962231 -- An "_if" variant exists for builder methods, that takes a boolean
2197- -- as it's first argument.
2232+ -- as its first argument.
21982233 :switch_if(true, "S", "conditional-switch", "This switch is conditional")
21992234 -- Options are CLI flags that have a value, like `- -strategy =octopus`
22002235 :option("o", "my-option", "default_value", "My option", { key_prefix = "-" })
@@ -2234,7 +2269,7 @@ Customizing Popups *neogit_custom_popups*
22342269
22352270You can customize existing popups via the Neogit config.
22362271
2237- Below is an example of adding a custom switch, but you can use any function
2272+ Below is an example of adding a custom switch, but you can use any function
22382273from the builder API.
22392274>lua
22402275 require("neogit").setup({
0 commit comments