news from git in eclipse
play

News from Git in Eclipse Matthias Sohn (SAP) merge strategy - PowerPoint PPT Presentation

News from Git in Eclipse Matthias Sohn (SAP) merge strategy extension point enables external merge strategy used by EMF Compare to provide model merge (Neon) JGit 4.0, EGit 4.1 EMF Compare provides model merge strategy Computes


  1. News from Git in Eclipse Matthias Sohn (SAP)

  2. merge strategy extension point ● enables external merge strategy used by EMF Compare to ● provide model merge (Neon) JGit 4.0, EGit 4.1

  3. EMF Compare provides model merge strategy Computes the logical model for each version Compares / merges complete logical model

  4. e4 smart clone repository ● project import ● invoke e4 smart project import ● auto-detects projects and their wizard types Since Neon it's the default ● EGit wiki e4 smart import

  5. e4 smart project import

  6. ● better support non-workspace Staging View files (4.2) enable sorting files by status (4.3) ● ● "Commit" opens staging view (4.3) EGit ● auto-switch to vertical layout (4.3)

  7. Better support non-workspace files

  8. Sorting files by status

  9. "Commit" opens Staging View

  10. Auto-switch to vertical layout

  11. History View ● auto-select branch (4.2) ● new search widget (4.5) EGit

  12. Auto-select branch

  13. New search widget

  14. Usability ● dirty decorator in repositories view Improvements ● most git actions enabled on working sets ● configure date format EGit ● view stash in commit viewer (4.4)

  15. dirty decorator in repositories view

  16. enable most git actions on working sets

  17. configure date format

  18. View Stash in Commit Viewer

  19. Gerrit ● auto-configure repository cloned from Gerrit integration ● auto-fill "Fetch from Gerrit" wizard from clipboard ● "Commit and push" opens "Push to EGit 4.3 Gerrit" wizard ● Set topic on push for review (4.4)

  20. ● improved support for submodules / nested repositories (4.3) Misc configurable pull options (4.3) ● Improvements ● rebase modes (4.6) ● check for running launches before modifying the workspace (4.5) EGit auto-gc (4.6) ● Oomph setup for contributors (4.5) ●

  21. hooks support ● pre-push (4.2) ● post-commit (4.5) JGit

  22. fixed most wanted JGit bug (108 votes) .gitattributes ● filter attributes (4.2) text attributes ● ● eol attributes JGit 4.3 ● macros

  23. LFS client Large File ● integrate git-lfs extension in client (4.2) built-in JGit LFS extension (4.6) ● Storage server JGit, EGit basic JGit LFS server (4.3) ● ○ file system or S3 storage ● Gerrit lfs plugin (Gerrit 2.13)

  24. Versioning large binaries in Git large binary files can't be packed by Git efficiently ➔ Git repository growing quickly ➔ gc more expensive and less efficient ➔ slows down transport ➔ Git server load grows

  25. Large File Storage (LFS) extension .gitattributes slides.pdf X.java git server git .git lfs server -- objects -- lfs git-lfs

  26. LFS configuration which files to store in LFS ? .gitattributes .gitattributes *.pdf filter=lfs diff=lfs merge=lfs -text .gitconfig slides.pdf [filter "lfs"] X.java clean = git-lfs clean %f smudge = git-lfs smudge %f .git -- config -- objects lfs clean filter intercepts add lfs smudge filter intercepts checkout -- lfs

  27. git add slides.pdf .gitattributes slides.pdf X.java version git-lfs/spec/v1 id sha256:5891b5b522... size 6 lfs clean filter .git -- objects slides.pdf -- lfs store meta data in objects store big file in lfs objects

  28. git push origin push .gitattributes slides.pdf version git-lfs/spec/v1 X.java id sha256:5891b5b522... git server size 6 .git -- objects lfs server pre-push hook -- lfs slides.pdf

  29. git fetch/clone, git checkout fetch .gitattributes slides.pdf version git-lfs/spec/v1 X.java id sha256:5891b5b522... size 6 git server .git -- objects lfs server slides.pdf -- lfs lfs smudge checkout filter downloads large object lazily

  30. LFS server with JGit filesystem/S3 storage Gerrit .gitattributes .git EGit slides.pdf -- objects X.java JGit Gerrit plugin .git LFS storage -- objects (filesystem JGit LFS server JGit LFS / S3) client -- lfs

  31. RefTree (4.2) ● version refs as git objects repository state described by RefTree ● The quest for commit containing ref updates ● enables atomic push distributed JGit Ketch (4.3) JGit ● distributed transaction log based on RefTree Raft distributed consensus for leader ● election ● basis for distributed JGit server

  32. RefTree: Versioning branches in git store refs in git tree objects push can update many refs -> stored in one RefTree commit -> enable transactional ref updates when receiving a pack -> compare single SHA1 to compare repository states

  33. jgit jgit.git spy clone with worktree bare repository empty, used for standard refs refs stored in RefTree introspection commit, push symlink bootstrap bootstrap branch branch alternates objects objects RefTree Versions bootstrap branch symlinked objects linked via alternates

  34. Ketch: multi-master git repository ● leader election (Raft) leader

  35. Ketch: multi-master git repository ● leader election (Raft) ● push arrives on any server leader push

  36. Ketch: multi-master git repository ● leader election (Raft) ● push arrives on any server leader ● queue proposal to leader ● leader creates new RefTree queue proposal RefTree describing target state push

  37. Ketch: multi-master git repository ● leader election (Raft) ● push arrives on any server leader ● queue proposal to leader ● leader creates new RefTree queue proposal RefTree describing target state ● replicate objects and RefTree to majority of servers push RefTree

  38. Ketch: multi-master git repository ● leader election (Raft) ● push arrives on any server leader ● queue proposal to leader ● leader creates new RefTree queue proposal RefTree describing target state ● replicate objects and RefTree to majority of servers push RefTree RefTree

  39. Ketch: multi-master git repository ● leader election (Raft) ● push arrives on any server leader ● queue proposal to leader ● leader creates new RefTree RefTree describing target state ● replicate objects and RefTree ack ack to majority of servers ● commit transaction RefTree RefTree

  40. Q uestions & A nswers

  41. Evaluate the Sessions Sign in and vote at eclipsecon.org - 1 + 1 0

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend