Skip to contentSkip to conversation

git-mailrc: Replace tabs with spaces in alias entries

PATCH New Adam Sampson 2 participants 6 messages Jun 27, 2018 – Jul 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 git-mailrc: Replace tabs with spaces in alias entries

patman's _ReadAliasFile only splits on spaces, not tabs, so the entries for dinh and maxime weren't being recognised as valid. I'll fix patman in a separate patch, but this makes all the entries consistent.

---

 doc/git-mailrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
doc/git-mailrc +2 -2
index af8e3358a9..3a490beee2 100644
@@ -20,7 +20,7 @@ alias alisonwang     Alison Wang <[email protected]>
 alias angelo_ts      Angelo Dureghello <[email protected]>
 alias bmeng          Bin Meng <[email protected]>
 alias danielschwierzeck Daniel Schwierzeck <[email protected]>
-alias dinh	     Dinh Nguyen <[email protected]>
+alias dinh           Dinh Nguyen <[email protected]>
 alias hs             Heiko Schocher <[email protected]>
 alias iwamatsu       Nobuhiro Iwamatsu <[email protected]>
 alias jaehoon        Jaehoon Chung <[email protected]>
@@ -33,7 +33,7 @@ alias marex          Marek Vasut <[email protected]>
 alias mariosix       Mario Six <[email protected]>
 alias masahiro       Masahiro Yamada <[email protected]>
 alias mateusz        Mateusz Kulikowski <[email protected]>
-alias maxime	     Maxime Ripard <[email protected]>
+alias maxime         Maxime Ripard <[email protected]>
 alias monstr         Michal Simek <[email protected]>
 alias prafulla       Prafulla Wadaskar <[email protected]>
 alias prom           Minkyu Kang <[email protected]>
Signature · 1 line
2.18.0
#1 lore raw

PATCH 2/2 patman: Split alias entries on arbitrary whitespace

Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here.

---

 tools/patman/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/patman/settings.py +1 -1
index 94ea5b5a1b..ca4334426b 100644
@@ -263,7 +263,7 @@ def _ReadAliasFile(fname):
                 line = line.strip()
                 if not line or line.startswith('#'):
                     continue
-                words = line.split(' ', 2)
+                words = line.split(None, 2)
                 if len(words) < 3 or words[0] != 'alias':
                     if not bad_line:
                         bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum,
Signature · 1 line
2.18.0
#2 lore raw

PATCH 2/2 patman: Split alias entries on arbitrary whitespace

Quoted 9 lines · Adam Sampson

Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here.

---

 tools/patman/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw

PATCH 2/2 patman: Split alias entries on arbitrary whitespace

Quoted 5 lines · Simon Glass
Quoted 4 lines · Adam Sampson

Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here.

Quoted 7 lines
Quoted 5 lines

---

 tools/patman/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!

#4 lore raw

PATCH 1/2 git-mailrc: Replace tabs with spaces in alias entries

In reply to Adam Sampson
Quoted 9 lines · Adam Sampson

patman's _ReadAliasFile only splits on spaces, not tabs, so the entries for dinh and maxime weren't being recognised as valid. I'll fix patman in a separate patch, but this makes all the entries consistent.

---

 doc/git-mailrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
#5 lore raw

PATCH 1/2 git-mailrc: Replace tabs with spaces in alias entries

Quoted 5 lines · Simon Glass
Quoted 4 lines · Adam Sampson

patman's _ReadAliasFile only splits on spaces, not tabs, so the entries for dinh and maxime weren't being recognised as valid. I'll fix patman in a separate patch, but this makes all the entries consistent.

Quoted 7 lines
Quoted 5 lines

---

 doc/git-mailrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!