mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-18 23:07:13 +09:00
status.lua: Display hash and branch of file
Return current commit hash and branch of repository where file in buffer is located instead of current directory.
This commit is contained in:
@@ -8,8 +8,10 @@ those options (`> help options`) for more information.
|
||||
|
||||
This plugin provides functions that can be used in the status line format:
|
||||
|
||||
* `status.branch`: returns the name of the current git branch.
|
||||
* `status.hash`: returns the hash of the current git commit.
|
||||
* `status.branch`: returns the name of the current git branch in the repository
|
||||
where the file is located.
|
||||
* `status.hash`: returns the hash of the current git commit in the repository
|
||||
where the file is located.
|
||||
* `status.paste`: returns "" if the paste option is disabled and "PASTE"
|
||||
if it is enabled.
|
||||
* `status.lines`: returns the number of lines in the buffer.
|
||||
|
||||
Reference in New Issue
Block a user