azzurris / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

How about a "repo add" command? #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Andrew D. Stadler (Google) <stadler@android.com> on Thu May 21 
11:33:27 PDT 2009
Source: JIRA REPO-33

I find it pretty annoying to have to bounce back and forth between the top
level and the project directory just to do git commands.  Would it be worth
adding a command to repo that could this automatically?  I'm thinking of
something like:

repo add path/to/file
  - confirm file exists
  - cd to file's directory
  - while (there is no .git directory) cd ..
  - git add file

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

GoogleCodeExporter commented 9 years ago
Comment by Shawn Pearce <sop@google.com> on Thu May 21 11:34:56 PDT 2009

repo stage doesn't do it for you?

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Comment by Andrew D. Stadler (Google) <stadler@android.com> on Fri May 22 
16:39:59 PDT 2009

We had some IRC discussion of this, I'll summarize some of my takeaways here
(which are probably quite inaccurate):

* It's not documented in our workflow doc so I didn't know about it.  Could
you add some text to AndroidGitWorkflow showing how it could be used and
contrasting it with "git add" which is documented there in various flavors.

* It seemed from discussion that "repo stage" isn't quite the same as "git
add", but to the unwashed masses (me at least) the differences were non-obvious

* If it's the same, can we rename it "repo add" ?

* If it's different, is there a case to be made for adding "repo add" that
works like a smarter "git add" ?

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by sop+code@google.com on 24 Sep 2009 at 11:09