Skip to content

Commit e8c91f9

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 4a9ef96 + bc11b50 commit e8c91f9

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

ObjectiveGit/GTIndexEntry.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ - (BOOL)isStaged {
8686
}
8787

8888
- (GTIndexEntryStatus)status {
89-
if ((self.flags & GIT_IDXENTRY_UPDATE) != 0) {
89+
if ((self.flags & (GIT_IDXENTRY_UPDATE << 16)) != 0) {
9090
return GTIndexEntryStatusUpdated;
91-
} else if ((self.flags & GIT_IDXENTRY_UPTODATE) != 0) {
91+
} else if ((self.flags & (GIT_IDXENTRY_UPTODATE << 16)) != 0) {
9292
return GTIndexEntryStatusUpToDate;
93-
} else if ((self.flags & GIT_IDXENTRY_CONFLICTED) != 0) {
93+
} else if ((self.flags & (GIT_IDXENTRY_CONFLICTED << 16)) != 0) {
9494
return GTIndexEntryStatusConflicted;
95-
} else if ((self.flags & GIT_IDXENTRY_ADDED) != 0) {
95+
} else if ((self.flags & (GIT_IDXENTRY_ADDED << 16)) != 0) {
9696
return GTIndexEntryStatusAdded;
97-
} else if ((self.flags & GIT_IDXENTRY_REMOVE) != 0) {
97+
} else if ((self.flags & (GIT_IDXENTRY_REMOVE << 16)) != 0) {
9898
return GTIndexEntryStatusRemoved;
9999
}
100100

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ The ObjectiveGit API makes extensive use of the Cocoa NSError pattern. The publi
2626

2727
### Xcode
2828

29-
ObjectiveGit requires Xcode 7 or greater to build the framework and run unit tests. Projects that must use an older version of Xcode can use
29+
ObjectiveGit requires Xcode 7 or greater to build the framework and run unit tests. Projects that must use an older version of Xcode can use
3030
[Carthage](#carthage) to install pre-built binaries
3131
or download them [manually](#manually).
3232

3333
### Other Tools
3434

35-
To start building the framework, you must install the required dependencies,
36-
[xctool](https://github.com/facebook/xctool) and
37-
[cmake](https://github.com/Kitware/CMake). We recommend using
38-
[Homebrew](http://brew.sh) to install these tools.
35+
To start building the framework, you must install the required dependencies,
36+
[xctool](https://github.com/facebook/xctool) and
37+
[cmake](https://github.com/Kitware/CMake). We recommend using
38+
[Homebrew](http://brew.sh) to install these tools.
3939

4040
Once you have the dependencies you should clone this repository and then run [`script/bootstrap`](script/bootstrap). This will automatically pull down and install any other
4141
dependencies.
@@ -52,6 +52,12 @@ There are three ways of including ObjectiveGit in a project:
5252
1. [Manual](#manual)
5353
1. [Subproject](#subproject)
5454

55+
## Bitcode
56+
57+
:warning: iOS apps need to set the `ENABLE_BITCODE` build setting to `NO`.
58+
59+
![Xcode project bitcode setting disabled](https://cloud.githubusercontent.com/assets/41798/10668574/d8dd3080-78d4-11e5-8aa5-e10084b7ce34.png)
60+
5561

5662
## Carthage
5763

@@ -71,7 +77,7 @@ There are three ways of including ObjectiveGit in a project:
7177
1. **iOS targets**
7278
* On your application targets' "General" settings tab, in the "Linked Frameworks and Libraries" section, drag and drop the `ObjectiveGit.framework` from the [`Carthage/Build/iOS`](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#carthagebuild) folder on disk.
7379
![Linked Frameworks](http://i.imgur.com/y4caRw0.png)
74-
80+
7581
* On your application targets' "Build Phases" settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following contents:
7682

7783
```

0 commit comments

Comments
 (0)