Skip to content

Commit

Permalink
[IMP] git-mig-auto-msg: use / instead of @ in upgrade commit mess…
Browse files Browse the repository at this point in the history
…ages

I don't know I had in mind 6 years ago, but `/` is a better choice:

 - It match the directory structure
 - It's easier to type on keyboard (but you don't have to if you use this
   script)
 - It's less visually disturbing
  • Loading branch information
KangOl committed Dec 4, 2020
1 parent 2160daf commit 4d7a4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-mig-auto-msg
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def main(tag=None, message=None, coauthors=(), amend=False):
agg_mod = {k for k, v in mods.items() if v == common_versions}
if not agg_mod:
break
agg.append('{}@{}'.format(rs(agg_mod), rs(common_versions)))
agg.append('{}/{}'.format(rs(agg_mod), rs(common_versions)))
new_mods = defaultdict(set)
for m in mods:
v = mods[m] - common_versions
Expand All @@ -94,7 +94,7 @@ def main(tag=None, message=None, coauthors=(), amend=False):
mods = new_mods

for m, v in mods.items():
agg.append('{}@{}'.format(m, rs(v)))
agg.append('{}/{}'.format(m, rs(v)))

if tag is None:
tag = guess_tag
Expand Down

0 comments on commit 4d7a4a7

Please sign in to comment.