summaryrefslogtreecommitdiffstats
path: root/tests/testsuite/main.rs
diff options
context:
space:
mode:
authorTitouan Vervack <tivervac@gmail.com>2019-09-02 21:56:59 +0200
committerMatan Kushner <hello@matchai.me>2019-09-02 15:56:59 -0400
commit59e8b1fc927eff4874ea44e381953b86ffc8af7b (patch)
tree074535b48421d7d4ea2c148e751bb02e99e413f5 /tests/testsuite/main.rs
parentf8929c2d7d37ef1a511ed2b941ca9b1644f666c7 (diff)
feat: added truncation_length/symbol to git_branch (#268)
Git branches can become very long (e.g. gitlab auto-generated branch names), thus it would be nice to be able to truncate them to keep your prompt lenght in line. This patch adds two new options to the git_branch module: * truncation_length: The amount of graphemes to of a gitbranch to truncate to * truncation_symbol: The symbol that should be used to indicate that a branch name was trunctated To be able to correctly work with UTF-8 graphemes, unicode-segmentation was added as a dependency.
Diffstat (limited to 'tests/testsuite/main.rs')
-rw-r--r--tests/testsuite/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testsuite/main.rs b/tests/testsuite/main.rs
index ed0289835..cd96b8e85 100644
--- a/tests/testsuite/main.rs
+++ b/tests/testsuite/main.rs
@@ -3,6 +3,7 @@ mod cmd_duration;
mod common;
mod configuration;
mod directory;
+mod git_branch;
mod git_status;
mod golang;
mod jobs;