Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352993

Summary: Better display of messages created by hooks in remote repository
Product: [Technology] EGit Reporter: Gunnar Wagenknecht <gunnar>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: shish+eclipse
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Gunnar Wagenknecht CLA 2011-07-25 07:18:40 EDT
Created attachment 200267 [details]
screenshot

Sometimes, hooks are installed in a remote repository. EGit displays the output of such hooks in the push dialog already. It would be nice if the output of the hooks can be formatted in a way that makes it better readable.

Possible optimizations:

* convert line endings to native endings (i.e. properly wrap on Windows)
* make output scrollable
* (optionally) use fixed-width (i.e. "text") font for the hook output
Comment 1 Benjamin Muskalla CLA 2011-07-25 07:21:50 EDT
See
http://egit.eclipse.org/r/#change,3906
http://egit.eclipse.org/r/#change,3909

Missing items:
* converting the line endings (we currenlty just wrap)
* Use a fixed width
Comment 2 Shish Moom CLA 2012-11-22 11:57:15 EST
I don't know if this is related to line endings or something else, but an issue I've found is that long commit hook lines get wrapped really weirdly -- short lines are fine, but long lines seem to have their trailing \n stripped, so they merge with the next line:


line 111
line 222
line 333

line 1111111111111111111111111111
111111111 line 222222222222222222
22222222222222222 line 3333333333
3333333333333333333333333

the code in the commit hook that prints these lines is the same in each case, the only difference is the length of the line