Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2449c563
Commit
2449c563
authored
Feb 24, 2016
by
Andy Whitcroft
Committed by
Tim Gardner
Apr 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBUNTU: [Debian] git-ubuntu-log -- wrap long bug and commit titles
Signed-off-by:
Andy Whitcroft
<
apw@canonical.com
>
parent
602b1e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
debian/scripts/misc/git-ubuntu-log
debian/scripts/misc/git-ubuntu-log
+11
-2
No files found.
debian/scripts/misc/git-ubuntu-log
View file @
2449c563
...
...
@@ -7,6 +7,8 @@ import codecs
import
urllib.request
import
json
import
textwrap
sys
.
stdout
=
codecs
.
getwriter
(
"utf-8"
)(
sys
.
stdout
.
detach
())
# Suck up the git log output and extract the information we need.
...
...
@@ -93,7 +95,14 @@ for bug in bugs:
print
(
''
)
emit_nl
=
True
print
(
' * '
+
title
)
title_lines
=
textwrap
.
wrap
(
title
,
76
)
print
(
' * '
+
title_lines
[
0
])
for
line
in
title_lines
[
1
:]:
print
(
' '
+
line
)
emit_title
=
False
print
(
' - '
+
entry
[
'subject'
])
title_lines
=
textwrap
.
wrap
(
entry
[
'subject'
],
76
)
print
(
' - '
+
title_lines
[
0
])
for
line
in
title_lines
[
1
:]:
print
(
' '
+
line
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment