Tabify everything · TNick/libgit2@87d9869 · GitHub
Skip to content

Commit 87d9869

Browse files
author
Vicent Marti
committed
Tabify everything
There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
1 parent bb742ed commit 87d9869

63 files changed

Lines changed: 806 additions & 806 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎include/git2/commit.h‎

Lines changed: 5 additions & 5 deletions

‎include/git2/common.h‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
#include <stdlib.h>
1313

1414
#ifdef __cplusplus
15-
# define GIT_BEGIN_DECL extern "C" {
16-
# define GIT_END_DECL }
15+
# define GIT_BEGIN_DECL extern "C" {
16+
# define GIT_END_DECL }
1717
#else
18-
/** Start declarations in C mode */
19-
# define GIT_BEGIN_DECL /* empty */
20-
/** End declarations in C mode */
21-
# define GIT_END_DECL /* empty */
18+
/** Start declarations in C mode */
19+
# define GIT_BEGIN_DECL /* empty */
20+
/** End declarations in C mode */
21+
# define GIT_END_DECL /* empty */
2222
#endif
2323

2424
/** Declare a public function exported for application use. */
2525
#ifdef __GNUC__
2626
# define GIT_EXTERN(type) extern \
27-
__attribute__((visibility("default"))) \
28-
type
27+
__attribute__((visibility("default"))) \
28+
type
2929
#elif defined(_MSC_VER)
3030
# define GIT_EXTERN(type) __declspec(dllexport) type
3131
#else
@@ -35,9 +35,9 @@
3535
/** Declare a public TLS symbol exported for application use. */
3636
#ifdef __GNUC__
3737
# define GIT_EXTERN_TLS(type) extern \
38-
__attribute__((visibility("default"))) \
39-
GIT_TLS \
40-
type
38+
__attribute__((visibility("default"))) \
39+
GIT_TLS \
40+
type
4141
#elif defined(_MSC_VER)
4242
# define GIT_EXTERN_TLS(type) __declspec(dllexport) GIT_TLS type
4343
#else

‎include/git2/errors.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ typedef enum {
6464
GIT_EINVALIDREFNAME = -15,
6565

6666
/** The specified reference has its data corrupted */
67-
GIT_EREFCORRUPTED = -16,
67+
GIT_EREFCORRUPTED = -16,
6868

6969
/** The specified symbolic reference is too deeply nested */
7070
GIT_ETOONESTEDSYMREF = -17,
@@ -111,7 +111,7 @@ typedef enum {
111111
/** The path pattern and string did not match */
112112
GIT_ENOMATCH = -31,
113113

114-
/** The buffer is too short to satisfy the request */
114+
/** The buffer is too short to satisfy the request */
115115
GIT_ESHORTBUFFER = -32,
116116
} git_error;
117117

‎include/git2/index.h‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
*/
2121
GIT_BEGIN_DECL
2222

23-
#define GIT_IDXENTRY_NAMEMASK (0x0fff)
23+
#define GIT_IDXENTRY_NAMEMASK (0x0fff)
2424
#define GIT_IDXENTRY_STAGEMASK (0x3000)
25-
#define GIT_IDXENTRY_EXTENDED (0x4000)
26-
#define GIT_IDXENTRY_VALID (0x8000)
25+
#define GIT_IDXENTRY_EXTENDED (0x4000)
26+
#define GIT_IDXENTRY_VALID (0x8000)
2727
#define GIT_IDXENTRY_STAGESHIFT 12
2828

2929
/*
@@ -33,26 +33,26 @@ GIT_BEGIN_DECL
3333
*
3434
* In-memory only flags:
3535
*/
36-
#define GIT_IDXENTRY_UPDATE (1 << 0)
37-
#define GIT_IDXENTRY_REMOVE (1 << 1)
38-
#define GIT_IDXENTRY_UPTODATE (1 << 2)
39-
#define GIT_IDXENTRY_ADDED (1 << 3)
36+
#define GIT_IDXENTRY_UPDATE (1 << 0)
37+
#define GIT_IDXENTRY_REMOVE (1 << 1)
38+
#define GIT_IDXENTRY_UPTODATE (1 << 2)
39+
#define GIT_IDXENTRY_ADDED (1 << 3)
4040

41-
#define GIT_IDXENTRY_HASHED (1 << 4)
42-
#define GIT_IDXENTRY_UNHASHED (1 << 5)
43-
#define GIT_IDXENTRY_WT_REMOVE (1 << 6) /* remove in work directory */
44-
#define GIT_IDXENTRY_CONFLICTED (1 << 7)
41+
#define GIT_IDXENTRY_HASHED (1 << 4)
42+
#define GIT_IDXENTRY_UNHASHED (1 << 5)
43+
#define GIT_IDXENTRY_WT_REMOVE (1 << 6) /* remove in work directory */
44+
#define GIT_IDXENTRY_CONFLICTED (1 << 7)
4545

46-
#define GIT_IDXENTRY_UNPACKED (1 << 8)
46+
#define GIT_IDXENTRY_UNPACKED (1 << 8)
4747
#define GIT_IDXENTRY_NEW_SKIP_WORKTREE (1 << 9)
4848

4949
/*
5050
* Extended on-disk flags:
5151
*/
52-
#define GIT_IDXENTRY_INTENT_TO_ADD (1 << 13)
53-
#define GIT_IDXENTRY_SKIP_WORKTREE (1 << 14)
52+
#define GIT_IDXENTRY_INTENT_TO_ADD (1 << 13)
53+
#define GIT_IDXENTRY_SKIP_WORKTREE (1 << 14)
5454
/* GIT_IDXENTRY_EXTENDED2 is for future extension */
55-
#define GIT_IDXENTRY_EXTENDED2 (1 << 15)
55+
#define GIT_IDXENTRY_EXTENDED2 (1 << 15)
5656

5757
#define GIT_IDXENTRY_EXTENDED_FLAGS (GIT_IDXENTRY_INTENT_TO_ADD | GIT_IDXENTRY_SKIP_WORKTREE)
5858

‎include/git2/odb.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ GIT_BEGIN_DECL
2828
* backend must be manually added using `git_odb_add_backend()`
2929
*
3030
* @param out location to store the database pointer, if opened.
31-
* Set to NULL if the open failed.
31+
* Set to NULL if the open failed.
3232
* @return GIT_SUCCESS or an error code
3333
*/
3434
GIT_EXTERN(int) git_odb_new(git_odb **out);
@@ -45,7 +45,7 @@ GIT_EXTERN(int) git_odb_new(git_odb **out);
4545
* contains a 'pack/' folder with the corresponding data
4646
*
4747
* @param out location to store the database pointer, if opened.
48-
* Set to NULL if the open failed.
48+
* Set to NULL if the open failed.
4949
* @param objects_dir path of the backends' "objects" directory.
5050
* @return GIT_SUCCESS or an error code
5151
*/
@@ -90,7 +90,7 @@ GIT_EXTERN(int) git_odb_add_alternate(git_odb *odb, git_odb_backend *backend, in
9090
/**
9191
* Close an open object database.
9292
*
93-
* @param db database pointer to close. If NULL no action is taken.
93+
* @param db database pointer to close. If NULL no action is taken.
9494
*/
9595
GIT_EXTERN(void) git_odb_close(git_odb *db);
9696

‎include/git2/oid.h‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct _git_oid {
4141
*
4242
* @param out oid structure the result is written into.
4343
* @param str input hex string; must be pointing at the start of
44-
* the hex sequence and have at least the number of bytes
45-
* needed for an oid encoded in hex (40 bytes).
44+
* the hex sequence and have at least the number of bytes
45+
* needed for an oid encoded in hex (40 bytes).
4646
* @return GIT_SUCCESS or an error code
4747
*/
4848
GIT_EXTERN(int) git_oid_fromstr(git_oid *out, const char *str);
@@ -72,10 +72,10 @@ GIT_EXTERN(void) git_oid_fromraw(git_oid *out, const unsigned char *raw);
7272
* Format a git_oid into a hex string.
7373
*
7474
* @param str output hex string; must be pointing at the start of
75-
* the hex sequence and have at least the number of bytes
76-
* needed for an oid encoded in hex (40 bytes). Only the
77-
* oid digits are written; a '\\0' terminator must be added
78-
* by the caller if it is required.
75+
* the hex sequence and have at least the number of bytes
76+
* needed for an oid encoded in hex (40 bytes). Only the
77+
* oid digits are written; a '\\0' terminator must be added
78+
* by the caller if it is required.
7979
* @param oid oid structure to format.
8080
*/
8181
GIT_EXTERN(void) git_oid_fmt(char *str, const git_oid *oid);
@@ -87,10 +87,10 @@ GIT_EXTERN(void) git_oid_fmt(char *str, const git_oid *oid);
8787
* hex digitis of the oid and "..." is the remaining 38 digits.
8888
*
8989
* @param str output hex string; must be pointing at the start of
90-
* the hex sequence and have at least the number of bytes
91-
* needed for an oid encoded in hex (41 bytes). Only the
92-
* oid digits are written; a '\\0' terminator must be added
93-
* by the caller if it is required.
90+
* the hex sequence and have at least the number of bytes
91+
* needed for an oid encoded in hex (41 bytes). Only the
92+
* oid digits are written; a '\\0' terminator must be added
93+
* by the caller if it is required.
9494
* @param oid oid structure to format.
9595
*/
9696
GIT_EXTERN(void) git_oid_pathfmt(char *str, const git_oid *oid);
@@ -99,8 +99,8 @@ GIT_EXTERN(void) git_oid_pathfmt(char *str, const git_oid *oid);
9999
* Format a git_oid into a newly allocated c-string.
100100
*
101101
* @param oid the oid structure to format
102-
* @return the c-string; NULL if memory is exhausted. Caller must
103-
* deallocate the string with free().
102+
* @return the c-string; NULL if memory is exhausted. Caller must
103+
* deallocate the string with free().
104104
*/
105105
GIT_EXTERN(char *) git_oid_allocfmt(const git_oid *oid);
106106

@@ -117,7 +117,7 @@ GIT_EXTERN(char *) git_oid_allocfmt(const git_oid *oid);
117117
* @param n the size of the out buffer.
118118
* @param oid the oid structure to format.
119119
* @return the out buffer pointer, assuming no input parameter
120-
* errors, otherwise a pointer to an empty string.
120+
* errors, otherwise a pointer to an empty string.
121121
*/
122122
GIT_EXTERN(char *) git_oid_to_string(char *out, size_t n, const git_oid *oid);
123123

‎include/git2/revwalk.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,28 @@ GIT_BEGIN_DECL
2626
* and subject to change at any time.
2727
* This is the default sorting for new walkers.
2828
*/
29-
#define GIT_SORT_NONE (0)
29+
#define GIT_SORT_NONE (0)
3030

3131
/**
3232
* Sort the repository contents in topological order
3333
* (parents before children); this sorting mode
3434
* can be combined with time sorting.
3535
*/
36-
#define GIT_SORT_TOPOLOGICAL (1 << 0)
36+
#define GIT_SORT_TOPOLOGICAL (1 << 0)
3737

3838
/**
3939
* Sort the repository contents by commit time;
4040
* this sorting mode can be combined with
4141
* topological sorting.
4242
*/
43-
#define GIT_SORT_TIME (1 << 1)
43+
#define GIT_SORT_TIME (1 << 1)
4444

4545
/**
4646
* Iterate through the repository contents in reverse
4747
* order; this sorting mode can be combined with
4848
* any of the above.
4949
*/
50-
#define GIT_SORT_REVERSE (1 << 2)
50+
#define GIT_SORT_REVERSE (1 << 2)
5151

5252
/**
5353
* Allocate a new revision walker to iterate through a repo.
@@ -151,7 +151,7 @@ GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);
151151
/**
152152
* Free a revision walker previously allocated.
153153
*
154-
* @param walk traversal handle to close. If NULL nothing occurs.
154+
* @param walk traversal handle to close. If NULL nothing occurs.
155155
*/
156156
GIT_EXTERN(void) git_revwalk_free(git_revwalk *walk);
157157

‎include/git2/status.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
*/
2020
GIT_BEGIN_DECL
2121

22-
#define GIT_STATUS_CURRENT 0
22+
#define GIT_STATUS_CURRENT 0
2323
/** Flags for index status */
24-
#define GIT_STATUS_INDEX_NEW (1 << 0)
24+
#define GIT_STATUS_INDEX_NEW (1 << 0)
2525
#define GIT_STATUS_INDEX_MODIFIED (1 << 1)
26-
#define GIT_STATUS_INDEX_DELETED (1 << 2)
26+
#define GIT_STATUS_INDEX_DELETED (1 << 2)
2727

2828
/** Flags for worktree status */
29-
#define GIT_STATUS_WT_NEW (1 << 3)
30-
#define GIT_STATUS_WT_MODIFIED (1 << 4)
31-
#define GIT_STATUS_WT_DELETED (1 << 5)
29+
#define GIT_STATUS_WT_NEW (1 << 3)
30+
#define GIT_STATUS_WT_MODIFIED (1 << 4)
31+
#define GIT_STATUS_WT_DELETED (1 << 5)
3232

3333
// TODO Ignored files not handled yet
34-
#define GIT_STATUS_IGNORED (1 << 6)
34+
#define GIT_STATUS_IGNORED (1 << 6)
3535

3636
/**
3737
* Gather file statuses and run a callback for each one.

‎include/git2/tag.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ GIT_EXTERN(const char *) git_tag_message(git_tag *tag);
152152
* must belong to the given `repo`.
153153
*
154154
* @param tagger Signature of the tagger for this tag, and
155-
* of the tagging time
155+
* of the tagging time
156156
*
157157
* @param message Full message for this tag
158158
*
@@ -211,7 +211,7 @@ GIT_EXTERN(int) git_tag_create_frombuffer(
211211
*
212212
* @return GIT_SUCCESS or an error code
213213
* A proper reference is written in the /refs/tags folder,
214-
* pointing to the provided target object
214+
* pointing to the provided target object
215215
*/
216216
GIT_EXTERN(int) git_tag_create_lightweight(
217217
git_oid *oid,

‎include/git2/thread-utils.h‎

Lines changed: 29 additions & 29 deletions

0 commit comments

Comments
 (0)