/usr/share/gtk-doc/html/libgit2-glib-1.0/GgitRef.html is in libgit2-glib-1.0-doc 0.24.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GgitRef: libgit2-glib Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="libgit2-glib Reference Manual">
<link rel="up" href="rn01.html" title="API reference">
<link rel="prev" href="GgitPushOptions.html" title="GgitPushOptions">
<link rel="next" href="GgitReflog.html" title="GgitReflog">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#GgitRef.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#GgitRef.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GgitPushOptions.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GgitReflog.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GgitRef"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GgitRef.top_of_page"></a>GgitRef</span></h2>
<p>GgitRef</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GgitRef.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-is-valid-name" title="ggit_ref_is_valid_name ()">ggit_ref_is_valid_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitOId.html" title="GgitOId"><span class="returnvalue">GgitOId</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-target" title="ggit_ref_get_target ()">ggit_ref_get_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-symbolic-target" title="ggit_ref_get_symbolic_target ()">ggit_ref_get_symbolic_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRef.html#GgitRefType" title="enum GgitRefType"><span class="returnvalue">GgitRefType</span></a>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-reference-type" title="ggit_ref_get_reference_type ()">ggit_ref_get_reference_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-name" title="ggit_ref_get_name ()">ggit_ref_get_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-shorthand" title="ggit_ref_get_shorthand ()">ggit_ref_get_shorthand</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-to-string" title="ggit_ref_to_string ()">ggit_ref_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-resolve" title="ggit_ref_resolve ()">ggit_ref_resolve</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRepository.html" title="GgitRepository"><span class="returnvalue">GgitRepository</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-owner" title="ggit_ref_get_owner ()">ggit_ref_get_owner</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-set-symbolic-target" title="ggit_ref_set_symbolic_target ()">ggit_ref_set_symbolic_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-set-target" title="ggit_ref_set_target ()">ggit_ref_set_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-rename" title="ggit_ref_rename ()">ggit_ref_rename</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-delete" title="ggit_ref_delete ()">ggit_ref_delete</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitObject.html" title="GgitObject"><span class="returnvalue">GgitObject</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-lookup" title="ggit_ref_lookup ()">ggit_ref_lookup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-has-log" title="ggit_ref_has_log ()">ggit_ref_has_log</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GgitReflog.html" title="GgitReflog"><span class="returnvalue">GgitReflog</span></a> *
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-get-log" title="ggit_ref_get_log ()">ggit_ref_get_log</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-delete-log" title="ggit_ref_delete_log ()">ggit_ref_delete_log</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-is-branch" title="ggit_ref_is_branch ()">ggit_ref_is_branch</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-is-note" title="ggit_ref_is_note ()">ggit_ref_is_note</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-is-remote" title="ggit_ref_is_remote ()">ggit_ref_is_remote</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GgitRef.html#ggit-ref-is-tag" title="ggit_ref_is_tag ()">ggit_ref_is_tag</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GgitRef.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GgitRef.html#GgitRef-struct" title="GgitRef">GgitRef</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GgitRef.html#GgitRefClass" title="struct GgitRefClass">GgitRefClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GgitRef.html#GgitRefType" title="enum GgitRefType">GgitRefType</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GgitRef.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> GEnum
<span class="lineart">╰──</span> GgitRefType
GObject
<span class="lineart">╰──</span> <a class="link" href="GgitObjectFactoryBase.html" title="GgitObjectFactoryBase">GgitObjectFactoryBase</a>
<span class="lineart">╰──</span> <a class="link" href="GgitNative.html" title="GgitNative">GgitNative</a>
<span class="lineart">╰──</span> GgitRef
<span class="lineart">╰──</span> <a class="link" href="GgitBranch.html" title="GgitBranch">GgitBranch</a>
</pre>
</div>
<div class="refsect1">
<a name="GgitRef.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="GgitRef.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="ggit-ref-is-valid-name"></a><h3>ggit_ref_is_valid_name ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_is_valid_name (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
<p>Check if the given <em class="parameter"><code>name</code></em>
is a valid name for a reference. Note that <em class="parameter"><code>name</code></em>
should be the full ref name (including prefixes).</p>
<p>Valid toplevel names can contain only capital letters and underscores
and must start and end with a letter (e.g. HEAD, ORIG_HEAD).</p>
<p>Valid refs/ names may contain any characters, except '~', '^', ':', '\', '?',
'[', '*', ".." and "@{", because they are interpreted by revparse.</p>
<div class="refsect3">
<a name="ggit-ref-is-valid-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name to validate.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-is-valid-name.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>name</code></em>
is valid, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-target"></a><h3>ggit_ref_get_target ()</h3>
<pre class="programlisting"><a class="link" href="GgitOId.html" title="GgitOId"><span class="returnvalue">GgitOId</span></a> *
ggit_ref_get_target (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Get the OID pointed to by a direct reference.
Only available if the reference is direct (i.e. an object id reference,
not a symbolic one).</p>
<div class="refsect3">
<a name="ggit-ref-get-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-target.returns"></a><h4>Returns</h4>
<p> a new oid if available, <code class="literal">NULL</code> otherwise. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-symbolic-target"></a><h3>ggit_ref_get_symbolic_target ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
ggit_ref_get_symbolic_target (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Get full name to the reference pointed to by a symbolic reference.
Only available if the reference is symbolic.</p>
<div class="refsect3">
<a name="ggit-ref-get-symbolic-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-symbolic-target.returns"></a><h4>Returns</h4>
<p> the name if available, <code class="literal">NULL</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-reference-type"></a><h3>ggit_ref_get_reference_type ()</h3>
<pre class="programlisting"><a class="link" href="GgitRef.html#GgitRefType" title="enum GgitRefType"><span class="returnvalue">GgitRefType</span></a>
ggit_ref_get_reference_type (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Gets the type of <em class="parameter"><code>ref</code></em>
. Either direct (<a class="link" href="GgitRef.html#GGIT-REF-OID:CAPS"><span class="type">GGIT_REF_OID</span></a>) or
symbolic (<a class="link" href="GgitRef.html#GGIT-REF-SYMBOLIC:CAPS"><span class="type">GGIT_REF_SYMBOLIC</span></a>).</p>
<div class="refsect3">
<a name="ggit-ref-get-reference-type.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-reference-type.returns"></a><h4>Returns</h4>
<p> the type of a reference.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-name"></a><h3>ggit_ref_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
ggit_ref_get_name (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Gets the full name of <em class="parameter"><code>ref</code></em>
.</p>
<div class="refsect3">
<a name="ggit-ref-get-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-name.returns"></a><h4>Returns</h4>
<p> the full name of a reference.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-shorthand"></a><h3>ggit_ref_get_shorthand ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
ggit_ref_get_shorthand (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Gets the shorthand name of <em class="parameter"><code>ref</code></em>
.</p>
<div class="refsect3">
<a name="ggit-ref-get-shorthand.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-shorthand.returns"></a><h4>Returns</h4>
<p> the shorthand name of a reference.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-to-string"></a><h3>ggit_ref_to_string ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
ggit_ref_to_string (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Get a string representation of the ref.</p>
<div class="refsect3">
<a name="ggit-ref-to-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-to-string.returns"></a><h4>Returns</h4>
<p> a string representation of the ref.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-resolve"></a><h3>ggit_ref_resolve ()</h3>
<pre class="programlisting"><a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
ggit_ref_resolve (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Resolves a symbolic reference.</p>
<p>This method iteratively peels a symbolic reference
until it resolves to a direct reference to an OID.</p>
<p>If a direct reference is passed as an argument,
that reference is returned immediately.</p>
<div class="refsect3">
<a name="ggit-ref-resolve.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-resolve.returns"></a><h4>Returns</h4>
<p> the resolved reference to the peeled one. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-owner"></a><h3>ggit_ref_get_owner ()</h3>
<pre class="programlisting"><a class="link" href="GgitRepository.html" title="GgitRepository"><span class="returnvalue">GgitRepository</span></a> *
ggit_ref_get_owner (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Gets the repository where <em class="parameter"><code>ref</code></em>
resides.</p>
<div class="refsect3">
<a name="ggit-ref-get-owner.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-owner.returns"></a><h4>Returns</h4>
<p> the repository where a reference resides. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-set-symbolic-target"></a><h3>ggit_ref_set_symbolic_target ()</h3>
<pre class="programlisting"><a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
ggit_ref_set_symbolic_target (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *target</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *log_message</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Create a new reference with the same name as the given reference but a
different symbolic target. The reference must be a symbolic reference,
otherwise this will fail.</p>
<p>The new reference will be written to disk, overwriting the given reference.</p>
<p>The target name will be checked for validity.
See <code class="literal"><code class="function">ggit_ref_create_symbolic()</code></code> for rules about valid names.</p>
<div class="refsect3">
<a name="ggit-ref-set-symbolic-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>target</p></td>
<td class="parameter_description"><p>The new target for the reference.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>log_message</p></td>
<td class="parameter_description"><p>The one line long message to be appended to the reflog.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-set-symbolic-target.returns"></a><h4>Returns</h4>
<p> the newly created <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-set-target"></a><h3>ggit_ref_set_target ()</h3>
<pre class="programlisting"><a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
ggit_ref_set_target (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><a class="link" href="GgitOId.html" title="GgitOId"><span class="type">GgitOId</span></a> *oid</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *log_message</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Create a new reference with the same name as the given reference but a
different OID target. The reference must be a direct reference, otherwise
this will fail.</p>
<p>The new reference will be written to disk, overwriting the given reference.</p>
<div class="refsect3">
<a name="ggit-ref-set-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>oid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitOId.html" title="GgitOId"><span class="type">GgitOId</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>log_message</p></td>
<td class="parameter_description"><p>The one line long message to be appended to the reflog.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-set-target.returns"></a><h4>Returns</h4>
<p> the newly created <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-rename"></a><h3>ggit_ref_rename ()</h3>
<pre class="programlisting"><a class="link" href="GgitRef.html" title="GgitRef"><span class="returnvalue">GgitRef</span></a> *
ggit_ref_rename (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *new_name</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> force</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *log_message</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Rename an existing reference.</p>
<p>This method works for both direct and symbolic references.</p>
<p>The new name will be checked for validity.
See <code class="literal"><code class="function">ggit_ref_create_symbolic()</code></code> for rules about valid names.</p>
<p>If not error, <em class="parameter"><code>ref</code></em>
will be deleted from disk and a
new <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> will be returned.</p>
<p>The reference will be immediately renamed in-memory and on disk.</p>
<p>If the <code class="literal">force</code> flag is not enabled, and there's already
a reference with the given name, the renaming will fail.</p>
<p>IMPORTANT:
The user needs to write a proper reflog entry if the
reflog is enabled for the repository. We only rename
the reflog if it exists.</p>
<div class="refsect3">
<a name="ggit-ref-rename.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>new_name</p></td>
<td class="parameter_description"><p>the new name.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>force</p></td>
<td class="parameter_description"><p><code class="literal">TRUE</code> to force the renaming.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>log_message</p></td>
<td class="parameter_description"><p>The one line long message to be appended to the reflog.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-rename.returns"></a><h4>Returns</h4>
<p> a newly created <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-delete"></a><h3>ggit_ref_delete ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
ggit_ref_delete (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Deletes <em class="parameter"><code>ref</code></em>
.</p>
<p>This method works for both direct and symbolic references.</p>
<p>The reference will be immediately removed on disk and from
memory. The given reference pointer will no longer be valid.</p>
<div class="refsect3">
<a name="ggit-ref-delete.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-lookup"></a><h3>ggit_ref_lookup ()</h3>
<pre class="programlisting"><a class="link" href="GgitObject.html" title="GgitObject"><span class="returnvalue">GgitObject</span></a> *
ggit_ref_lookup (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Convenient method to resolve a reference to an object.</p>
<div class="refsect3">
<a name="ggit-ref-lookup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-lookup.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="GgitObject.html" title="GgitObject"><span class="type">GgitObject</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-has-log"></a><h3>ggit_ref_has_log ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_has_log (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Get whether <em class="parameter"><code>ref</code></em>
has an existing log.</p>
<div class="refsect3">
<a name="ggit-ref-has-log.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-has-log.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>ref</code></em>
has a log, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-get-log"></a><h3>ggit_ref_get_log ()</h3>
<pre class="programlisting"><a class="link" href="GgitReflog.html" title="GgitReflog"><span class="returnvalue">GgitReflog</span></a> *
ggit_ref_get_log (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Gets the <a class="link" href="GgitReflog.html" title="GgitReflog"><span class="type">GgitReflog</span></a> for <em class="parameter"><code>ref</code></em>
. The reflog will be created if it doesn't exist
yet.</p>
<div class="refsect3">
<a name="ggit-ref-get-log.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-get-log.returns"></a><h4>Returns</h4>
<p> the reflog. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-delete-log"></a><h3>ggit_ref_delete_log ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
ggit_ref_delete_log (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Deletes the log for <em class="parameter"><code>ref</code></em>
, on error <em class="parameter"><code>error</code></em>
is set.</p>
<div class="refsect3">
<a name="ggit-ref-delete-log.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span> for error reporting, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-is-branch"></a><h3>ggit_ref_is_branch ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_is_branch (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Check whether the reference is a branch.</p>
<div class="refsect3">
<a name="ggit-ref-is-branch.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-is-branch.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the reference is a branch, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-is-note"></a><h3>ggit_ref_is_note ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_is_note (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Check whether the reference is a note.</p>
<div class="refsect3">
<a name="ggit-ref-is-note.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-is-note.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the reference is a note, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-is-remote"></a><h3>ggit_ref_is_remote ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_is_remote (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Check whether the reference is a remote.</p>
<div class="refsect3">
<a name="ggit-ref-is-remote.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-is-remote.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the reference is a remote, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ggit-ref-is-tag"></a><h3>ggit_ref_is_tag ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
ggit_ref_is_tag (<em class="parameter"><code><a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a> *ref</code></em>);</pre>
<p>Check whether the reference is a tag.</p>
<div class="refsect3">
<a name="ggit-ref-is-tag.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ref</p></td>
<td class="parameter_description"><p>a <a class="link" href="GgitRef.html" title="GgitRef"><span class="type">GgitRef</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ggit-ref-is-tag.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the reference is a tag, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GgitRef.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GgitRef-struct"></a><h3>GgitRef</h3>
<pre class="programlisting">typedef struct _GgitRef GgitRef;</pre>
<p>Reprensents a git reference.</p>
</div>
<hr>
<div class="refsect2">
<a name="GgitRefClass"></a><h3>struct GgitRefClass</h3>
<pre class="programlisting">struct GgitRefClass {
};
</pre>
<p>The class structure for <a class="link" href="GgitRef.html#GgitRefClass" title="struct GgitRefClass"><span class="type">GgitRefClass</span></a>.</p>
<div class="refsect3">
<a name="GgitRefClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GgitRefType"></a><h3>enum GgitRefType</h3>
<p>Describes the type a reference is.</p>
<div class="refsect3">
<a name="GgitRefType.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GGIT-REF-INVALID:CAPS"></a>GGIT_REF_INVALID</p></td>
<td class="enum_member_description">
<p>An invalid reference.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GGIT-REF-OID:CAPS"></a>GGIT_REF_OID</p></td>
<td class="enum_member_description">
<p>A reference which points at an object id.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GGIT-REF-SYMBOLIC:CAPS"></a>GGIT_REF_SYMBOLIC</p></td>
<td class="enum_member_description">
<p>A reference which points at another reference.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GGIT-REF-LISTALL:CAPS"></a>GGIT_REF_LISTALL</p></td>
<td class="enum_member_description">
<p>All reference types.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>
|