Skip to content

[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
wants to merge 90 commits into
base: master
Choose a base branch
from
Open

[WIP] Merge --ff-only #1

wants to merge 90 commits into from

Conversation

dpordomingo
Copy link
Owner

@dpordomingo dpordomingo commented Apr 2, 2019

depends on src-d#1096

This PR implements the merge --ff-only feature

This PR also:

  • enhances and cleans command example helpers
  • prepares the scaffolding for the example command, docs, and all other desired features

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
  • test all the current command example options with its expected errors

…end. Fixes src-d#1074

Signed-off-by: Oleksii Shnyra <oleksii@global>
@dpordomingo dpordomingo self-assigned this Apr 2, 2019
@dpordomingo dpordomingo changed the title Merge [WIP] Merge Apr 2, 2019
@dpordomingo dpordomingo changed the title [WIP] Merge [WIP] Merge --ff-only Apr 2, 2019
@dpordomingo dpordomingo closed this Apr 2, 2019
@dpordomingo dpordomingo reopened this Apr 2, 2019
@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #1 into master will increase coverage by 0.24%.
The diff coverage is 90.6%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
plumbing/object/commit_walker_bfs_filtered.go 86.84% <86.84%> (ø)
plumbing/object/merge_base.go 93.33% <93.33%> (ø)
plumbing/object/commit_walker.go 45.96% <0%> (+1.24%) ⬆️
plumbing/object/commit_walker_bfs.go 80% <0%> (+4.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 923642a...f31f61a. Read the comment docs.

hasheddan and others added 16 commits April 15, 2019 14:59
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]>
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]>
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
dweomer and others added 17 commits May 2, 2019 12:41
This enables interacting with git remotes over SSH when behind a SOCKSv5
firewall.

Signed-off-by: Jacob Blain Christen <[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
Worktree: keep local changes when checkout branch
Support the 'rebase' config key for branches
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.