monotone

monotone Mtn Source Tree

Root/git.hh

1#ifndef __GIT_HH__
2#define __GIT_HH__
3
4// Copyright (C) 2005 Petr Baudis <pasky@suse.cz>
5// all rights reserved.
6// licensed to the public under the terms of the GNU GPL (>= 2)
7// see the file COPYING for details
8
9// GIT "library" interface
10
11#include <iostream>
12#include <string>
13
14#include "vocab.hh"
15#include "database.hh"
16
17typedef hexenc<id> git_object_id;
18typedef std::map<git_object_id, std::pair<revision_id, manifest_id> > git_mt_commitmap;
19
20struct
21git_person
22{
23 std::string name, email;
24};
25
26
27extern std::string const gitcommit_id_cert_name;
28extern std::string const gitcommit_committer_cert_name;
29
30
31void set_git_env(std::string const &name, std::string const &value);
32void stream_grabline(std::istream &stream, std::string &line);
33int git_tmpfile(std::string &tmpfile);
34
35void capture_git_cmd_output(boost::format const &fmt, std::filebuf &fbout);
36void capture_git_cmd_io(boost::format const &fmt, data const &input, std::filebuf &fbout);
37
38void historical_gitrev_to_monorev(std::string const &git, git_mt_commitmap *commitmap,
39 app_state &app,
40 git_object_id gitrid, revision_id &found_rid);
41
42#endif // __GIT_HH__

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status