|
| Re: Under what circumstances does EGit automatically stage file changes? [message #1716349 is a reply to message #1716300] |
Thu, 03 December 2015 07:55   |
Ed Merks Messages: 32902 Registered: July 2009 |
Senior Member |
|
|
David,
Comments below.
On 02/12/2015 7:27 PM, David M. Karr wrote:
> When using git outside of Eclipse, I have to manually stage file
> modifications. I can even stage a set of mods to a file, and then
> later make additional changes to the file that are not yet staged. A
> commit at that point will commit the staged changes to the file, but
> not the unstaged changes.
>
> It seems likely to me that EGit is automatically staging file
> modifications.
No, the only time I see this happen is when I delete a file within
Eclipse. That deletion is automatically staged. I personally don't
like this feature because there are cases (Oomph's version builder)
where I delete the file so it will be regenerated, so I end up manually
unstaging the deletion.
>
> What I'm wondering is, when is that staging happening? Does it stage
> a file as soon as it detects the file save?
No.
> What if I change a file in the project outside of Eclipse?
If you hit the refresh button in the staging view, it appears to notice
any changes made outside of Eclipse (and to match what you see in the
command line).
> Does it stage the modification as soon as it detects the file has been
> modified?
I guess most of this can be answered by looking at what's going on in
the Staging view. Generally changes remain in the Unstaged changes
section until you manually move them to the Staged changes section.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01957 seconds