This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
Handle repositories with no commits #533
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d503504
Include a fixture repository with no commits
smashwilson 6b10aed
Test helper to copy rather than clone a fixture repository
smashwilson 10b5a39
Use `symbolic-ref` instead of `rev-parse` to fetch the current branch
smashwilson 41cfceb
`getHeadCommit()` notes when HEAD is an unborn ref
smashwilson 2102d62
Conceal the "amend" checkbox on an unborn ref
smashwilson 04f961f
lastCommit is a required prop for CommitView
smashwilson bae98de
:shirt:
smashwilson 59ee37a
CommitViewController tests need to pass a lastCommit
smashwilson c80fa8e
Use realpaths for copied repositories
smashwilson 9929eee
Merge branch 'master' of github.com:atom/github into aw-fear-of-commi…
smashwilson 5d052bc
Initialize repositories in-place
smashwilson cd2f92d
Pass a TooltipManager in GitControllerTest
smashwilson b7d692d
Handle a detached HEAD in getCurrentBranch()
smashwilson bfefe93
Return a flag when HEAD is detached so we can change the display somehow
smashwilson d8db1ce
Adapt to the object returned by `getCurrentBranch()`
smashwilson 4df926f
Style the BranchView differently when on a detached branch
smashwilson 9ecc9e9
Use `for-each-ref` instead of parsing `branch` to enumerate branches
smashwilson 30d49c7
Include a detached HEAD description disabled in the BranchMenuView
smashwilson 206e004
Disable the push and pull buttons when detached
smashwilson fd88cd6
Custom error message for detached HEAD
smashwilson 6098e1f
Unit tests for PushPullMenu detached HEAD cases
smashwilson 1c7d131
Merge branch 'master' of github.com:atom/github into aw-fear-of-commi…
smashwilson 9152afd
Extract and use common BranchPropType
smashwilson ac635ca
`query.branchName` isn't a thing
smashwilson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ This bit is done consistently with the way that
git-prompt.shdecorates your PS1. A bit messy but it should be fairly robust?