Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352993 - Better display of messages created by hooks in remote repository
Summary: Better display of messages created by hooks in remote repository
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 7
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 07:18 EDT by Gunnar Wagenknecht CLA
Modified: 2012-11-22 11:57 EST (History)
1 user (show)

See Also:


Attachments
screenshot (75.26 KB, image/png)
2011-07-25 07:18 EDT, Gunnar Wagenknecht CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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