-
rev-parse [something]
- show the SHA of any weird git phrase
-
hash-object -w [file]
- take any file or stdin and return a blob sha
-
ls-tree (-r) [sha]
-
show the entries of a git tree in the db
This file contains hidden or 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
!SLIDE bullets incremental transition=fade | |
.notes something something something something something something something something something something something something something something something dark side | |
# Second Slide # | |
* something | |
* something else | |
* a third thing | |
* a fourth thing |
This file contains hidden or 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
--enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid |
This file contains hidden or 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
$ git log --notes=pusher | |
commit c5ba11b523db159b319f568931501237c5e53ed2 | |
Author: Scott Chacon <[email protected]> | |
Date: Sat Aug 20 10:59:02 2011 +0200 | |
test | |
Notes (pusher): | |
master :: User Name [email protected] :: Sat Aug 20 10:59:02 +0200 2011 |
This file contains hidden or 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
#! /usr/bin/env ruby | |
# take a branch and rebase the current one onto it | |
branch_target = branch_onto = ARGV[0] | |
raise 'no target' unless branch_target | |
branch_onto = ARGV[1] if ARGV[1] | |
# record where we are and what branch we're on | |
branch_current = `git symbolic-ref HEAD`.chomp |
This file contains hidden or 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
def temp_path | |
t = Tempfile.new('graph') | |
fpath = t.path | |
t.unlink | |
FileUtils.mkdir_p(fpath) | |
fpath | |
end |
This file contains hidden or 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
#! /usr/bin/env ruby | |
$LOAD_PATH.unshift '/Users/schacon/projects/git/rugged/lib' | |
require 'rugged' | |
require 'rubygems' | |
require 'pp' | |
dir, id = "/opt/linux.git" |
This file contains hidden or 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
class Stopwatch | |
attr_writer :splits, :max, :start, :end, :total | |
def initialize(message) | |
@message = message | |
@splits = [] | |
@max = 5 | |
end |
This file contains hidden or 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
sdfsdf |
This file contains hidden or 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
back_branch = 'refs/heads/backup' | |
`rm /tmp/backup_index` | |
ENV['GIT_INDEX_FILE'] = '/tmp/backup_index' | |
last_commit = `git rev-parse #{back_branch}`.strip | |
last_tree = `git rev-parse #{back_branch}^{tree}`.strip | |
`git add --all` | |
next_tree = `git write-tree`.strip |