Skip to content

Commit 20c0f0a

Browse files
committed
fix bug that stripped underscores from branch name (fixes jwiegley#2)
1 parent 5bb3420 commit 20c0f0a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

LICENSE

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
631631
state the exclusion of warranty; and each file should have at least
632632
the "copyright" line and a pointer to where the full notice is found.
633633

634-
{one line to give the program's name and a brief idea of what it does.}
635-
Copyright (C) {year} {name of author}
634+
<one line to give the program's name and a brief idea of what it does.>
635+
Copyright (C) <year> <name of author>
636636

637637
This program is free software: you can redistribute it and/or modify
638638
it under the terms of the GNU General Public License as published by
@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
652652
If the program does terminal interaction, make it output a short
653653
notice like this when it starts in an interactive mode:
654654

655-
{project} Copyright (C) {year} {fullname}
655+
<program> Copyright (C) <year> <name of author>
656656
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657657
This is free software, and you are welcome to redistribute it
658658
under certain conditions; type `show c' for details.
@@ -672,4 +672,3 @@ may consider it more useful to permit linking proprietary applications with
672672
the library. If this is what you want to do, use the GNU Lesser General
673673
Public License instead of this License. But first, please read
674674
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
675-

git-branch-status

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
# git-branch-status - print pretty git branch sync status reports
4-
#
5-
# please direct comments, bug reports, or feature requests to the upstream repo:
3+
# please direct comments, bug reports, feature requests, or PRs to the upstream repo:
64
# https://github.com/bill-auger/git-branch-status/issues/
5+
6+
# git-branch-status - print pretty git branch sync status reports
77
#
88
# Copyright 2014 Jehiah Czebotar <https://github.com/jehiah>
99
# Copyright 2013 Fredrik Strandin <https://github.com/kd35a>
@@ -21,7 +21,7 @@
2121
#
2222
# You should have received a copy of the GNU General Public License version 3
2323
# along with git-branch-status. If not, see <http://www.gnu.org/licenses/>.
24-
#
24+
2525
# credits:
2626
# * originally by Jehiah Czebotar
2727
# * "s'all good!" message by Fredrik Strandin
@@ -109,10 +109,10 @@ readonly CEVEN=$CGREEN
109109
readonly CNOUPSTREAM=$CRED
110110
readonly CNOLOCAL=$CRED
111111
readonly HRULE_CHAR='-'
112-
readonly JOIN_CHAR='_'
112+
readonly JOIN_CHAR='~'
113113
readonly JOIN_REGEX="s/$JOIN_CHAR/ /"
114-
readonly STAR="*"
115-
readonly DELIM="|"
114+
readonly STAR='*'
115+
readonly DELIM='|'
116116
readonly NO_UPSTREAM="(no${JOIN_CHAR}upstream)"
117117
readonly NO_LOCAL="(no${JOIN_CHAR}local)"
118118
readonly NO_RESULTS_MSG="Everything is synchronized"
@@ -312,10 +312,11 @@ function printReportLine
312312

313313
function printReport # (header)
314314
{
315+
header=$1
315316
n_notable_differences=${#local_msgs[@]}
316317

317318
# pretty print results
318-
printf "\n $1\n"
319+
printf "\n $header\n"
319320
if [ "$n_notable_differences" != "0" ]
320321
then rule_w=$(($local_w+$behind_w+$ahead_w+$remote_w+13))
321322
printHRule $rule_w

0 commit comments

Comments
 (0)