Community
Participate
Working Groups
I have found one thing that hinders me to switch from the shell to EGit is that I often have the feeling that I don't know what actually happens when I use the EGit UI. To solve this problem, I would like to have a (non-interactive) console in the Eclipse console view that logs all activities of EGit. Secondly, the console is also the natural place where I would expect to see the results of remote operations, like push. The current behaviour - a pop-up after hitting finish on the push wizard - is (again) slightly off from the usual UI patterns.
Would a reflog view be sufficient for what you are looking for? That has been proposed in bug347861
A reflog doesn't help with remote activities, e.g. fetch or push. EGit currently shows a dialog after a push, but I have to close the dialog if I want to continue working. There is currently no way to see again later, for example, what change number Gerrit assigned to a new change. Also the reflog doesn't help if I delete a branch. So in summary, I don't think that a reflog will be enough.
What we need is the same kind of log view that Subclipse and the built-in CVS support provide: - Open the Console view - Click on the "Open Console" drop down icon and pick "Git".
+1 to log all executed egit actions in form of normal git command syntax.
Created attachment 259407 [details] +1 to have this bug resolved
+1
*** Bug 399776 has been marked as a duplicate of this bug. ***
I actually gave this a try and got a working prototype. But frankly said, it's a _lot_ of work for very little benefit. * EGit performs operations differently than you'd do them on the command line. For instance, staging a bunch of files in EGit corresponds to git add -A <file1> <file2> ... <fileN> even when all the files are in the same folder. A human would probably do most of the time cd <directory> git add -A . * Some EGit commands are implemented directly using JGit low-level mechanisms. * Many EGit operations execute in the background. So there needs a way to associate result output with previously displayed commands. There may be other commands shown in the console between a command and its result, and results of multiple operations may end up intermingled on the console. * With EGit you can work with several repositories from the UI. With command line git you can't: you always have to cd to the repo you want to work with. There would be a way of showing in the log in which repository or in which directory a certain command is logically executed. * You'd have to decide which commands to log at all. All of them? Even a git ls-remote like it occurs in the "Fetch from Gerrit" dialog? * You can't use the console for progress reporting. The console would be swamped by progress messages, each on a new line. The Eclipse console does not support overwriting the last line (c.f. bug 76936 and bug 467147), and even if it did, there'd still be the problem of intermingled progress output from concurrently running commands. * You'd have to implement a way to produce a text representation for each and every JGit command. Currently there is no unified way to do so for JGit commands, so you'd have to it explicitly everywhere EGit does a JGit operation. * You'd have to implement a way to produce a text representation for each and every command result. This is likely to duplicate a lot of the work already done for showing results in the UI. So from my point of view, this is a "won't fix".
(In reply to Thomas Wolf from comment #8) > I actually gave this a try and got a working prototype. But frankly said, > it's a _lot_ of work for very little benefit. Fully agree with all your points. > So from my point of view, this is a "won't fix". May be we should really *only* provide a place where the user can see *remote* answers for push/pull etc operations, *not* for any local operations? Looking on the number of votes, question to the voters: any opinion on that?
+1 I have similar requirement from my organization, so I tried to make a patch that write log of operations that change HEAD or interact with remotes. Any comments are welcome. https://git.eclipse.org/r/#/c/103342/