Skip to content

Instantly share code, notes, and snippets.

@calebhearth
Created December 13, 2013 19:17
Show Gist options
  • Save calebhearth/7949626 to your computer and use it in GitHub Desktop.
Save calebhearth/7949626 to your computer and use it in GitHub Desktop.
++ history -a
++ __meaningful
++ git rev-parse --git-dir
+++ basename /Users/caleb/code/formulaic
+++ __git
++++ __git_ps1
++++ local pcmode=no
++++ local detached=no
++++ local 'ps1pc_start=\u@\h:\w '
++++ local 'ps1pc_end=\$ '
++++ local 'printf_format= (%s)'
++++ case "$#" in
++++ printf_format=' (%s)'
++++ local repo_info rev_parse_exit_code
+++++ git rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD
++++ repo_info='.git
false
false
true
e6450d2'
++++ rev_parse_exit_code=0
++++ '[' -z '.git
false
false
true
e6450d2' ']'
++++ local short_sha
++++ '[' 0 = 0 ']'
++++ short_sha=e6450d2
++++ repo_info='.git
false
false
true'
++++ local inside_worktree=true
++++ repo_info='.git
false
false'
++++ local bare_repo=false
++++ repo_info='.git
false'
++++ local inside_gitdir=false
++++ local g=.git
++++ local r=
++++ local b=
++++ local step=
++++ local total=
++++ '[' -d .git/rebase-merge ']'
++++ '[' -d .git/rebase-apply ']'
++++ '[' -f .git/MERGE_HEAD ']'
++++ '[' -f .git/CHERRY_PICK_HEAD ']'
++++ '[' -f .git/REVERT_HEAD ']'
++++ '[' -f .git/BISECT_LOG ']'
++++ '[' -n '' ']'
++++ '[' -h .git/HEAD ']'
++++ local head=
++++ read head
++++ b=refs/heads/ct-nested-fields
++++ '[' 'ref: refs/heads/ct-nested-fields' = refs/heads/ct-nested-fields ']'
++++ '[' -n '' ']'
++++ local w=
++++ local i=
++++ local s=
++++ local u=
++++ local c=
++++ local p=
++++ '[' true = false ']'
++++ '[' true = true ']'
++++ '[' -n 1 ']'
+++++ git config --bool bash.showDirtyState
++++ '[' '' '!=' false ']'
++++ git diff --no-ext-diff --quiet --exit-code
++++ '[' -n e6450d2 ']'
++++ git diff-index --cached --quiet HEAD --
++++ '[' -n 1 ']'
++++ '[' -r .git/refs/stash ']'
++++ '[' -n 1 ']'
+++++ git config --bool bash.showUntrackedFiles
++++ '[' '' '!=' false ']'
++++ git ls-files --others --exclude-standard --error-unmatch -- '*'
++++ '[' -n branch ']'
++++ __git_ps1_show_upstream
++++ local key value
++++ local svn_remote svn_url_pattern count n
++++ local upstream=git legacy= verbose= name=
++++ svn_remote=()
+++++ git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$'
+++++ tr '\0\n' '\n '
++++ local output=
++++ read -r key value
++++ case "$key" in
++++ read -r key value
++++ for option in '${GIT_PS1_SHOWUPSTREAM}'
++++ case "$option" in
++++ case "$upstream" in
++++ upstream='@{upstream}'
++++ [[ -z '' ]]
+++++ git rev-list --count --left-right '@{upstream}...HEAD'
++++ count='0 0'
++++ [[ -z '' ]]
++++ case "$count" in
++++ p==
++++ local z=
++++ '[' no = yes ']'
++++ local f=
++++ local gitstring=ct-nested-fields=
++++ '[' no = yes ']'
++++ printf -- ' (%s)' ct-nested-fields=
+++ git=' (ct-nested-fields=)'
+++ git=' ct-nested-fields=)'
+++ git=' ct-nested-fields='
+++ git=' ct-nested-fields='
+++ git=' ct-nested-fields='
+++ git=' ct-nested-fields='
+++ git=' ct-nested-fields='
+++ echo ct-nested-fields=
++ echo 'formulaic[ct-nested-fields=]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment