Bash git alias tab completion error -


I know that the Git aliens can be used with logic.

But today I had an error.

Take a easy example , which is not suitable for real use . If I make a nickname like this:

  [alias] lo = "! Sh -c 'git log $ 1' -"   

then I can use

  git lo file_a   

to view the file_A log.

But when I used to complete the "tab" path, the following error occurs.

  git lo [tab]   

Error msg:

  sh: Announce: `_git_ {': valid The identifier is not   

This seems to be a bug in git-completion.bash. But I do not know where `_git_ {'is!

In addition to this, I think that around the quote mark _git_ in error msg {looks odd.

BTW, My MScGet Version 1.7.6-Preview 20110708

Add:

Other Strange Thing This is, I _git _ {. String in a file below All files under the git's dior.

I think the installation of a custom completion function for git, and error In that setup, try removing the custom receipt first and see if the error has disappeared:

  Full-R git   

Side note: Along with reusable arguments in the GIT for shell commands, modern idioms have to define a shell function, giving you the standard shell fragmentation process Karan has the ability to use and compared to 'sh -c', a lower level of quote is argued to deal with:

  [alias] plush = "! F ( ) {Git bridge "\" $ @ \ "& amp; Git push \ "$ @ \"}; F "   

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -