Repository navigation
edit your gitignore file - #881
Conversation
| remote={state.remote} | ||
| dispatcher={this.props.dispatcher} | ||
| repository={repository} | ||
| gitIgnoreText={state.gitIgnoreText} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Ready for review 🦁 |
| gitStore.loadCurrentRemote() | ||
| gitStore.calculateAheadBehindForCurrentBranch() | ||
| gitStore.updateLastFetched() | ||
| gitStore.updateGitIgnoreText() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| return new Promise<void>((resolve, reject) => { | ||
| Fs.readFile(path, 'utf8', (err, data) => { | ||
| if (err) { | ||
| // An error most likely means the repository's never been published. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| // An error most likely means the repository's never been published. | ||
| this._gitIgnoreText = null | ||
| } else if (data.length > 0) { | ||
| // If the file's empty then it _probably_ means the fetch failed and we |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly onInputRef?: (instance: HTMLTextAreaElement) => void | ||
| } | ||
|
|
||
| /** An input element with app-standard styles. */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /** Called on key down. */ | ||
| readonly onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void | ||
|
|
||
| /** A callback to receive the underlying `input` instance. */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /** Whether the input field is disabled. */ | ||
| readonly disabled?: boolean | ||
|
|
||
| /** Called when the user changes the value in the input field. */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly text: string | ||
| } | ||
|
|
||
| export class GitIgnore extends React.Component<IGitIgnoreProps, IGitIgnoreState> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
b04bb41 to
2cd3764
Compare
|
🍎 |

Fixes #803