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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#define BUF_SIZE ((size_t)(10<<20)) /* 10 MiB */ | |
int main() { | |
pid_t pid; | |
int rc, pipe_to_child[2], pipe_to_parent[2]; |
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
#!/usr/bin/env python | |
import pygit2 | |
import stat | |
import sys | |
if len(sys.argv) < 3: | |
print("Usage: %s repo-path rev [path]" % sys.argv[0]) | |
sys.exit(1) | |
repopath = sys.argv[1] |