forked from src-d/go-git
-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Merge --ff-only #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dpordomingo
wants to merge
90
commits into
master
Choose a base branch
from
merge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…end. Fixes src-d#1074 Signed-off-by: Oleksii Shnyra <oleksii@global>
Codecov Report
@@ Coverage Diff @@
## master #1 +/- ##
==========================================
+ Coverage 74.69% 74.93% +0.24%
==========================================
Files 149 151 +2
Lines 13222 13403 +181
==========================================
+ Hits 9876 10044 +168
- Misses 2248 2256 +8
- Partials 1098 1103 +5
Continue to review full report at Codecov.
|
54a4a96
to
11b19ac
Compare
Signed-off-by: HashedDan <[email protected]>
examples: commit, fixed minor typo in info statement
Signed-off-by: Máximo Cuadros <[email protected]>
plumbing: object, Count stats properly when no new line added at the …
plumbing: commit.StatsContext and fix for root commit
The Decode method was adding one too many newlines to the tag message, causing signature verification to fail. This is because in signed tags produced by `git`, there is a newline after the PGP signature block, resulting in `messageAndSig` having one extra (empty) `[]byte` element. This caused `t.Message` to receive one extra newline. Signed-off-by: Spencer Judd <[email protected]>
…fter signature Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
…delta objects Signed-off-by: Filip Navara <[email protected]>
plumbing: object, Fix tag message decoding
Large performance increase by buffering reads. There were a few instances where binary.Read() would end up using reflection on &plumbing.Hash, rather than treating it as a byte slice. This has now been resolved. Signed-off-by: Arran Walker <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
…ting new one Signed-off-by: Filip Navara <[email protected]>
plumbing: idxfile, avoid unnecessary building of reverse offset/hash map
Removes path.Clean and path.Join, as they're expensive in comparison to basic string manipulation that can be used here. Adds bufio.Buffer pool to be used by tag, tree and commit object decoding. Signed-off-by: Arran Walker <[email protected]>
plumbing: TreeWalker performance improvement, bufio pool for objects
This enables interacting with git remotes over SSH when behind a SOCKSv5 firewall. Signed-off-by: Jacob Blain Christen <[email protected]>
ssh: leverage proxy from environment
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
Signed-off-by: Filip Navara <[email protected]>
plumbing: object, add APIs for traversing over commit graphs
1) lookups on an annotated tag oid now work 2) there was a lot of complexity around detection of ambiguity, but unlike git, ambiguous refs are rejected (which causes bugs like src-d#823). The new code matches rev-parse's behavior (prefer the OID), though there is no warning path to report the same warning. Signed-off-by: Mike Lundy <[email protected]>
improve ResolveRevision's Ref lookup path
Signed-off-by: Linuxer Wang <[email protected]>
Worktree: keep local changes when checkout branch
Signed-off-by: Mike Riley <[email protected]>
Support the 'rebase' config key for branches
Signed-off-by: David Pordomingo <[email protected]>
Create merge-base feature
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
depends on src-d#1096
This PR implements the
merge --ff-only
featureThis PR also:
TODO:
--ff-only
is still incomplete, because it is returned the newer commit, but no ref is updated after the merge as it should be done