Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added iossim alias, cleaned up some git-stuff
- Loading branch information
Showing
7 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
# git-attic [-M] [PATH] - list deleted files of Git repositories | ||
# | ||
# Use -M to not show renamed files, and other git-log options as you like. | ||
|
||
git log --raw --no-renames --date=short --format="%h %cd" "$@" | | ||
awk '/^[0-9a-f]/ { commit=$1; date=$2 } | ||
/^:/ && $5 == "D" { print date, commit "^:" $6 }' | | ||
git -p column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh -e | ||
# git neck [-r] [COMMIT] - show commits until first branching point | ||
|
||
[ "$1" = -r ] && shift && R=-r | ||
COMMIT=$(git rev-parse --no-flags --default HEAD "$@") | ||
# skip first elements of trail | ||
TORSO=$(git trail $R $COMMIT | cut -d' ' -f2 | uniq | sed -n 2p) | ||
# fall back to initial commit on empty trail | ||
: ${TORSO:=$(git rev-list --max-parents=0 HEAD)} | ||
git log --oneline $(git rev-parse --no-revs "$@") $COMMIT...$TORSO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh -e | ||
# git trail [-r] [-t] [COMMIT] - show all branching points in Git history | ||
|
||
[ "$1" = -r ] && shift || REMOTES="-e refs/remotes/" | ||
[ "$1" = -t ] && shift || TAGS="-e refs/tags/" | ||
COMMIT=$(git rev-parse --no-flags --default HEAD "$@") | ||
|
||
{ git for-each-ref | grep -v -e '^$' $TAGS $REMOTES | ||
git log --date=short --format="%cd %h %H" "$@" | ||
} | awk ' | ||
$2 == "commit" || $2 == "tag" { | ||
"git merge-base '$COMMIT' " $1 | getline mb | ||
merge[mb] = merge[mb] " " $3 | ||
} | ||
{ | ||
if ($3 in merge) { | ||
split(merge[$3], mbs, " ") | ||
for (i in mbs) { | ||
"git name-rev --name-only --refs=\"" mbs[i] "\" " $3 | getline nr | ||
if (nr != "undefined") print $1, $2, nr # skip unreachable commits | ||
} | ||
} | ||
}' | git -p column # paginate output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alias iossim="open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
[ | ||
"podspec", | ||
"ru", | ||
"Guardfile" | ||
"Guardfile", | ||
"rabl" | ||
], | ||
"tab_size": 2, | ||
"translate_tabs_to_spaces": true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters