Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344227 - [client] Need equivalent of "git init"
Summary: [client] Need equivalent of "git init"
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 339145 345269
Blocks:
  Show dependency tree
 
Reported: 2011-04-28 23:39 EDT by Boris Bokowski CLA
Modified: 2011-09-01 11:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2011-04-28 23:39:57 EDT
By default, the server does not create a git repository for newly created folders. If we had a way to do a "git init" on an existing folder, we could completely remove the auto-creation of Git repositories.
Comment 1 Szymon Brandys CLA 2011-05-04 10:04:54 EDT
I wonder what would be the UI for it. I can imagine two ways of addressing it:

1) Git Init action in the file navigator. When it is clicked, a Git repo is created in the selected location.
2) Git Init action in the Git Repo view. It would open a dialog where we select a location for the new Git repo.

I like 1) since it is simpler. I already suggested something similar for creating clones (Bug 340968, comment 9 and 12). The idea was to have Git Clone action per each folder in the file navigator. When it is clicked you get a dialog that gathers details about the repo to clone, and then it is cloned to the selected folder. It would be similar to our Import action.

Thoughts?
Comment 2 Tomasz Zarna CLA 2011-05-04 10:26:33 EDT
(In reply to comment #1)
> 1) Git Init action in the file navigator. When it is clicked, a Git repo is
> created in the selected location.

I like this one better then 2) too.
Comment 3 Szymon Brandys CLA 2011-05-17 04:15:29 EDT
Gosia will add a checkbox to our Git Clone dialog to init a repo instead of cloning it. I think the dialog should be renamed then to Create Git Repository.
Comment 4 Malgorzata Janczarska CLA 2011-05-17 08:06:32 EDT
(In reply to comment #3)
> Gosia will add a checkbox to our Git Clone dialog to init a repo instead of
> cloning it. I think the dialog should be renamed then to Create Git Repository.
I added a new command on git repositories view, because there was place for it and it looks more clear. I still need to add an API call when bug 345269 is ready and change UI a when bug 339145 is ready.
Comment 5 Malgorzata Janczarska CLA 2011-05-30 12:47:32 EDT
Attached new API in b7f5dda47cf26e3639d219ce666a8b9ee3891e9c.