We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6323916 commit c4bbaeeCopy full SHA for c4bbaee
en/book/10-git-in-other-environments/chapter10.asc
@@ -288,7 +288,8 @@ Again, here's how to read HEAD's commit message:
288
289
[source,objc]
290
-----
291
-GTRepository *repo = [[GTRepository alloc] initWithURL:[NSURL fileURLWithPath:"/path/to/repo"] error:NULL];
+GTRepository *repo =
292
+ [[GTRepository alloc] initWithURL:[NSURL fileURLWithPath: @"/path/to/repo"] error:NULL];
293
GTReference *head = [repo headReferenceWithError:NULL];
294
GTCommit *tip = head.resolvedTarget;
295
NSString *message = tip.message;
@@ -315,7 +316,7 @@ As always, HEAD's commit message:
315
316
317
[source,python]
318
----
-# TODO
319
+pygit2.Repository("/path/to/repo").head.resolve().get_object().message
320
321
322
0 commit comments