Merge pull request #258 from spacewander/master

use mixin to add 'is git repo' check.
import changes *from* a branch
Merge pull request #260 from brandondrew/patch-1

typo fix.
FIX: representation of git-info

- fix representation of `git-info` output

$ git info --no-config

Before:

 ## Remote URLs:\n
 origin	https://github.com/sanusart/git-extras.git (fetch)
 origin	https://github.com/sanusart/git-extras.git (push)
 upstream	https://github.com/visionmedia/git-extras.git (fetch)
 upstream	https://github.com/visionmedia/git-extras.git (push)\n
 ## Remote Branches:\n
   origin/HEAD -> origin/master
   origin/fix_feature_refactor_bug
   origin/gh-pages
   origin/issue234
   origin/master
   origin/patch-1
   upstream/gh-pages
   upstream/master\n
 ## Local Branches:\n
 * master\n
 ## Most Recent Commit:\n
 commit ac18bd16b4f41cbb5185c42d3d10e0cc39b37e27
 Merge: 68455cf a1b7120
 Author: hemanth.hm <hemanth.hm@gmail.com>

     Merge pull request #260 from brandondrew/patch-1\n
 Type 'git log' for more commits, or 'git show <commit id>' for full commit details.\n

After:

git info --no-config

## Remote URLs:

origin	https://github.com/sanusart/git-extras.git (fetch)
origin	https://github.com/sanusart/git-extras.git (push)
upstream	https://github.com/visionmedia/git-extras.git (fetch)
upstream	https://github.com/visionmedia/git-extras.git (push)

## Remote Branches:

  origin/HEAD -> origin/master
  origin/fix_feature_refactor_bug
  origin/gh-pages
  origin/issue234
  origin/master
  origin/patch-1
  upstream/gh-pages
  upstream/master

## Local Branches:

* master

## Most Recent Commit:

commit ac18bd16b4f41cbb5185c42d3d10e0cc39b37e27
Merge: 68455cf a1b7120
Author: hemanth.hm <hemanth.hm@gmail.com>

    Merge pull request #260 from brandondrew/patch-1

Type 'git log' for more commits, or 'git show <commit id>' for full commit details.
Merge pull request #261 from sanusart/master

FIX: representation of git-info.
Implement git-pr
Merge pull request #262 from rstacruz/gh-259-git-pr

git-pr
fix #180 and #232 feature|bug|refactor checkout

If branch creation in feature|bug|refactor returns a non-zero value
then simply try to switch to branch
Merge pull request #263 from Yitsushi/bug/180-does-not-check-out-branch-if-it-already-exists

fix #180 and #232 feature|bug|refactor checkout.
fixed descriptions: match required/optional params
Merge pull request #264 from jamesmanning/patch-1

Fixed descriptions: match required/optional params.
Fixes #266
Version 2.1.0
Fix #267, git-missing did not catch branch name.

It was a bug on my setup, the test did no detect the
branch name, so I change:
if [[ $arg != -* ]]; then
by
if [ -n "${arg}" ]; then

According to test man page, -n:
«True if the length of string is non-zero.»

I also added quote and {} around the param,
to prevent bash expension around strange char.
Merge pull request #268 from GuillaumeSeren/bug/git-missing

Fix #267, git-missing did not catch branch name.
added git-locked to check what files have been locked
Merge pull request #270 from kevinawoo/hotfix/git-locked

git-locked
replace visionmedia/git-extras to tj/git-extras

Although Github reserves the 'visionmedia' user space(a visit to there
will be redirected to 'tj'), it's better to
rename the links from visionmedia/git-extras to tj/git-extras