Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9280855

Browse files
committed
Fix comment and copyright in example
1 parent f18f772 commit 9280855

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

examples/status.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/*
2-
* Copyright (C) 2011-2012 the libgit2 contributors
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
33
*
44
* This file is part of libgit2, distributed under the GNU GPL v2 with
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
7-
87
#include <git2.h>
98
#include <stdio.h>
109
#include <stdlib.h>
@@ -19,15 +18,21 @@ enum {
1918
#define MAX_PATHSPEC 8
2019

2120
/*
22-
* This example demonstrates the use of `git_status_foreach()` to roughly
23-
* simulate the output of running `git status`. It should serve as a simple
24-
* example of how to get basic status information.
21+
* This example demonstrates the use of the libgit2 status APIs,
22+
* particularly the `git_status_list` object, to roughly simulate the
23+
* output of running `git status`. It serves as a simple example of
24+
* using those APIs to get basic status information.
2525
*
2626
* This does not have:
2727
* - Robust error handling
28-
* - Any real command line parsing
2928
* - Colorized or paginated output formatting
3029
*
30+
* This does have:
31+
* - Examples of translating command line arguments to the status
32+
* options settings to mimic `git status` results.
33+
* - A sample status formatter that matches the default "long" format
34+
* from `git status`
35+
* - A sample status formatter that matches the "short" format
3136
*/
3237

3338
static void check(int error, const char *message, const char *extra)

0 commit comments

Comments
 (0)