def git_diff(args):
    '''prints diff of currently staged files to console.. '''
    repo = _get_repo()

    index = repo.repo.open_index()
    store = repo.repo.object_store
    index_sha = index.commit(store)
    #tree_ver=store[tree.lookup_path(store.peel_sha,file)[1]].data
    porcelain.diff_tree('.', repo[repo['HEAD'].tree].id, repo[index_sha].id, sys.stdout)
prints diff of currently staged files to console.. 
bin/git.py