Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config options for length of commit hash displayed in commits view
- Add config option `commitHashLength` to to pkg/config/user_config.go - Add config option `commitStatusChar` to display a char if there is nothing else to show the status color. - Changed the hash display in pkg/gui/presentation/commits.go - Refactor `pkg/gui/presentation/commits.go` slightly to be consistent Change `func displayCommit()` so all the individual strings are built first, then the whole thing `cols` is put together. Before, most strings were built prior to constructing `cols`, but a few were built inside the `cols` construction.
- Loading branch information
1 parent
b2ff09e
commit acfd6b5
Showing
4 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters