Re: [ITCH] Specify refspec without remote
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 19, 2013, 12:15 UTC
- Message-ID
- <CACsJy8D10yXoxynOscWjCyAq8qxeXOCMJLqkFYzSRUokUgYF8A@mail.gmail.com>
- In-Reply-To
- <CALkWK0nhmks6LqoALA8hrwkR00NjweyqV2RJ9-9V3q-bjgpsCg@mail.gmail.com>
On Tue, Mar 19, 2013 at 6:53 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 8 quoted lines
>> git push . foo:bar > > A URL may be a path to a git repository, and '.' is a valid path. > Currently, 'git push .' seems to push to the current repository (what > does that even mean?). For something truly unambiguous, we'll have to > use a character that's disallowed in URLs and isn't interpreted by the > shell- I can't seem to think of one. Otherwise, we'll have to > fallback to using heuristics anyway.
Yeah that was a stupid suggestion. There's also "-". Right now git push accepts it as a remote name, but I think in general "-" alone has always had a special meaning in UNIX world. We could put a new meaning to it (literal "-" directory can be specified with "./-"). Not totally sure if "-" is allowed in refspec though.
-- Duy