mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-25 16:06:25 +00:00
133 lines
15 KiB
HTML
133 lines
15 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>libgit2: commit.h File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body onload='searchBox.OnSelectItem(0);'>
|
|
<!-- Generated by Doxygen 1.7.4 -->
|
|
<script type="text/javascript"><!--
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
--></script>
|
|
<div id="top">
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">libgit2</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li id="searchli">
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">commit.h File Reference</div> </div>
|
|
</div>
|
|
<div class="contents">
|
|
|
|
<p>Git commit parsing, formatting routines.
|
|
<a href="#details">More...</a></p>
|
|
<div class="textblock"><code>#include "<a class="el" href="common_8h_source.html">common.h</a>"</code><br/>
|
|
<code>#include "<a class="el" href="types_8h_source.html">types.h</a>"</code><br/>
|
|
<code>#include "<a class="el" href="oid_8h_source.html">oid.h</a>"</code><br/>
|
|
<code>#include "<a class="el" href="object_8h_source.html">object.h</a>"</code><br/>
|
|
</div>
|
|
<p><a href="commit_8h_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr><td colspan="2"><h2><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga6501b39eacd564915489d105b6fa927d">git_commit_lookup</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> **commit, <a class="el" href="types_8h.html#a69f80526f06bad7d1aead7949c2840f5">git_repository</a> *repo, const <a class="el" href="structgit__oid.html">git_oid</a> *id)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Lookup a commit object from a repository. <a href="group__git__commit.html#ga6501b39eacd564915489d105b6fa927d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga05b7860809cb8ec4a1d90ff6a1ac03c2">git_commit_close</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Close an open commit. <a href="group__git__commit.html#ga05b7860809cb8ec4a1d90ff6a1ac03c2"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structgit__oid.html">git_oid</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gaa926d465afd9a625d689d31a30fa5e92">git_commit_id</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the id of a commit. <a href="group__git__commit.html#gaa926d465afd9a625d689d31a30fa5e92"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gac15d05a6ffab7da067d0b27228bc9ad4">git_commit_message_short</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the short (one line) message of a commit. <a href="group__git__commit.html#gac15d05a6ffab7da067d0b27228bc9ad4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gae17931582ac29e852252c507d0cc1281">git_commit_message</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the full message of a commit. <a href="group__git__commit.html#gae17931582ac29e852252c507d0cc1281"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">git_time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gaacc1b27b3d1f253ac00fd46b1bd5677b">git_commit_time</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the commit time (i.e. <a href="group__git__commit.html#gaacc1b27b3d1f253ac00fd46b1bd5677b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga78823eff0066f277574667c212344a48">git_commit_time_offset</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the commit timezone offset (i.e. <a href="group__git__commit.html#ga78823eff0066f277574667c212344a48"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structgit__signature.html">git_signature</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga4959e749fe7f9b257f902e96e224451c">git_commit_committer</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the committer of a commit. <a href="group__git__commit.html#ga4959e749fe7f9b257f902e96e224451c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structgit__signature.html">git_signature</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gab1e9d0bc6450a95978a1643e00de5e68">git_commit_author</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the author of a commit. <a href="group__git__commit.html#gab1e9d0bc6450a95978a1643e00de5e68"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gaf6367797eeac58c0b232257256d192c3">git_commit_tree</a> (<a class="el" href="types_8h.html#a754b8f9603ecc4f3dff649a924ce5b20">git_tree</a> **tree_out, <a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the tree pointed to by a commit. <a href="group__git__commit.html#gaf6367797eeac58c0b232257256d192c3"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga4a195aff6b2ef3fe4f6dc5f70de18c47">git_commit_parentcount</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of parents of this commit. <a href="group__git__commit.html#ga4a195aff6b2ef3fe4f6dc5f70de18c47"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga51320a499c192f17c9b6269b536e3124">git_commit_parent</a> (<a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> **parent, <a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *commit, unsigned int n)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the specified parent of the commit. <a href="group__git__commit.html#ga51320a499c192f17c9b6269b536e3124"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gaf833fc3a7f8eb78ba5a2ed833a6f2e94">git_commit_create</a> (<a class="el" href="structgit__oid.html">git_oid</a> *oid, <a class="el" href="types_8h.html#a69f80526f06bad7d1aead7949c2840f5">git_repository</a> *repo, const char *update_ref, const <a class="el" href="structgit__signature.html">git_signature</a> *author, const <a class="el" href="structgit__signature.html">git_signature</a> *committer, const char *message, const <a class="el" href="structgit__oid.html">git_oid</a> *tree_oid, int parent_count, const <a class="el" href="structgit__oid.html">git_oid</a> *parent_oids[])</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new commit in the repository. <a href="group__git__commit.html#gaf833fc3a7f8eb78ba5a2ed833a6f2e94"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#gad1c76ec3293251d65af997c8e00d87d8">git_commit_create_o</a> (<a class="el" href="structgit__oid.html">git_oid</a> *oid, <a class="el" href="types_8h.html#a69f80526f06bad7d1aead7949c2840f5">git_repository</a> *repo, const char *update_ref, const <a class="el" href="structgit__signature.html">git_signature</a> *author, const <a class="el" href="structgit__signature.html">git_signature</a> *committer, const char *message, const <a class="el" href="types_8h.html#a754b8f9603ecc4f3dff649a924ce5b20">git_tree</a> *tree, int parent_count, const <a class="el" href="types_8h.html#aa95ee762e2f944535e8bd87140cc6fb2">git_commit</a> *parents[])</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new commit in the repository using `git_object` instances as parameters. <a href="group__git__commit.html#gad1c76ec3293251d65af997c8e00d87d8"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga0191932483886e5bb7b4da62839abefa">git_commit_create_ov</a> (<a class="el" href="structgit__oid.html">git_oid</a> *oid, <a class="el" href="types_8h.html#a69f80526f06bad7d1aead7949c2840f5">git_repository</a> *repo, const char *update_ref, const <a class="el" href="structgit__signature.html">git_signature</a> *author, const <a class="el" href="structgit__signature.html">git_signature</a> *committer, const char *message, const <a class="el" href="types_8h.html#a754b8f9603ecc4f3dff649a924ce5b20">git_tree</a> *tree, int parent_count,...)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new commit in the repository using `git_object` instances and a variable argument list. <a href="group__git__commit.html#ga0191932483886e5bb7b4da62839abefa"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__git__commit.html#ga58aa071b4c2a28d1912238e3db96c73f">git_commit_create_v</a> (<a class="el" href="structgit__oid.html">git_oid</a> *oid, <a class="el" href="types_8h.html#a69f80526f06bad7d1aead7949c2840f5">git_repository</a> *repo, const char *update_ref, const <a class="el" href="structgit__signature.html">git_signature</a> *author, const <a class="el" href="structgit__signature.html">git_signature</a> *committer, const char *message, const <a class="el" href="structgit__oid.html">git_oid</a> *tree_oid, int parent_count,...)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new commit in the repository using a variable argument list. <a href="group__git__commit.html#ga58aa071b4c2a28d1912238e3db96c73f"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p>Git commit parsing, formatting routines. </p>
|
|
</div></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<hr class="footer"/><address class="footer"><small>Generated on Thu Apr 7 2011 13:27:55 for libgit2 by 
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
|
|
</body>
|
|
</html>
|