Skip to contentSkip to conversation

wt-status.c: Expand cut_line so the scissor line is 72 chars

PATCH New Øyvind A. Holm 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wt-status.c: Expand cut_line so the scissor line is 72 chars

Change the size of the commit scissor line to 72 characters (the recommended maximum line length in log messages) so it can be used as a visual clue in editors using monospaced fonts.

---
 Documentation/git-commit.txt | 2 +-
 t/t7502-commit.sh            | 2 +-
 wt-status.c                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Documentation/git-commit.txt +1 -1
index 0bbc8f5..d24573f 100644
@@ -189,7 +189,7 @@ verbatim::
 scissors::
 	Same as `whitespace`, except that everything from (and
 	including) the line
-	"`# ------------------------ >8 ------------------------`"
+	"`# --------------------------------- >8 ---------------------------------`"
 	is truncated if the message is to be edited. "`#`" can be
 	customized with core.commentChar.
 default::
t/t7502-commit.sh +1 -1
index 051489e..8b2ec6b 100755
@@ -229,7 +229,7 @@ test_expect_success 'cleanup commit messages (scissors option,-F,-e)' '
 	cat >text <<EOF &&
 
 # to be kept
-# ------------------------ >8 ------------------------
+# --------------------------------- >8 ---------------------------------
 to be removed
 EOF
 	echo "# to be kept" >expect &&
wt-status.c +1 -1
index 27da529..010632c 100644
@@ -18,7 +18,7 @@
 #include "utf8.h"
 
 static const char cut_line[] =
-"------------------------ >8 ------------------------\n";
+"--------------------------------- >8 ---------------------------------\n";
 
 static char default_wt_status_colors[][COLOR_MAXLEN] = {
 	GIT_COLOR_NORMAL, /* WT_STATUS_HEADER */
Signature · 1 line
2.1.0.29.g10a3b53