git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [bug-ish] [convenience] fatal: only [12] (reference)s? expected, [12] given
@ 2018-05-30  8:12 mana vortex
  2018-05-30 18:11 ` Stefan Beller
  0 siblings, 1 reply; 2+ messages in thread
From: mana vortex @ 2018-05-30  8:12 UTC (permalink / raw)
  To: git

Hello git folks,
I’m writing about something that annoys me since forever: The 
reference handling is not consistent between commands. For example, I do

git checkout origin master

but I do

git reset —hard origin/master

I always get it wrong the first time.

Is there a convenience option that circumvents the error?

If one argument is given, but two are expected, split the argument at 
the first / and retry - throw error if that isn’t valid
If two arguments are given, but one is expected, concat the arguments 
with a /.

Is that possible already, and if not, would you care to implement it?

Thank you for your time.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-30 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30  8:12 [bug-ish] [convenience] fatal: only [12] (reference)s? expected, [12] given mana vortex
2018-05-30 18:11 ` Stefan Beller

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).