Comments (6)
Not, it's not. Or, at least, not easily. Because of git's sha1 thing,
if you add a parent commit "P" to a commit "A", A will get a new sha1
id. So git-tfs can't backfill in front of a quick-clone commit.
What I would do, if I wanted to use quick-clone to get going quickly
and then back-fill the full history later, is:
- git tfs quick-clone to working dir "A", and start working.
- git tfs clone into another repository "B" and let it run in the background.
- Migrate the commits from "A" to "B". This could involve either
fetch/cherry-pick or format-patch/am to get the commits from "A" into
"B"; but it could also be a simple copy-paste of the latest state in
"A" to "B". This part will be a pain to deal with, but git makes it
possible to do this a lot better than almost anything else.
Honestly, though, if it was just me using git-tfs and the rest of the
team using TFS (i.e. the "official" code is going to stay in TFS), I
would do a quick-clone + fetch, and use TFS to look at older history.
If you're migrating permanently, do a full clone. There are TFS
histories that cause problems for git-tfs (e.g. issue #4), so a clone
might not be feasible. In that case, I'd hack quick-clone to take a
"starting TFS version" and effectively ignore history older than that.
HTH.
On Tue, Mar 15, 2011 at 6:06 PM, JamesDunne
[email protected]
wrote:
Is it possible to pull in earlier TFS changesets to the git repo before the quick-clone changeset? If so, how?
Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/28
from git-tfs.
It is just me using git-tfs and everyone else using TFS so I resorted to a simple view history in TFS. It's just so much nicer to use gitk though.
I have a fork of your git-tfs where I made some DownloadFile "improvements" (not really sure if they improve anything yet), so I'll try adding the "starting changeset" option to quick-clone. Or maybe I won't, since it's not that important. :)
Anyway, thanks for your help!
from git-tfs.
I agree on gitk (or gitextensions, or gitx).
Did your DownloadFile changes speed things up?
On Wed, Mar 16, 2011 at 11:37 AM, JamesDunne
[email protected]
wrote:
It is just me using git-tfs and everyone else using TFS so I resorted to a simple view history in TFS. It's just so much nicer to use gitk though.
I have a fork of your git-tfs where I made some DownloadFile "improvements" (not really sure if they improve anything yet), so I'll try adding the "starting changeset" option to quick-clone. Or maybe I won't, since it's not that important. :)
Anyway, thanks for your help!Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/28#comment_881009
from git-tfs.
Only marginally as far as I can tell. It did cut out the CPU utilization from GitSharp.Core's ObjectWriter
since I removed the need to download to a TemporaryFile
by using the DownloadFile()
overload that returns a Stream
. I also added the ContentLength
property to the IItem
in order to pass to the ObjectWriter
. Feel free to check it out; it's a small set of changes.
from git-tfs.
I wonder if git tfs already does use intensive history rewrite, why just dont allow to do following
git tfs quick-clone
- do some work, commit, commit, commit
git tfs <something> -c C1234
Where will do following:
- get changesets between C1234 and previous first CS of git quick-clone
- rebase on top of new quick-cloned repository
Of cource this will not work for quick-clones made public, but anyway this should never happen
from git-tfs.
Also this can be done using git graft or git replace
from git-tfs.
Related Issues (20)
- Policy: Internal error in Work Items. Error loading the Work Items policy HOT 2
- How do I retrieve file history after clone? All I see is branch comments. HOT 7
- Adding work items to the export file doesn't work
- git-tfs not showing history showing error,"Please report this case to the git-tfs developers!" HOT 1
- New Release after v0.32.0 HOT 4
- Sudden authentication issue HOT 2
- Export map can't be created, if a TFS changeset shall be assigned to multiple commits
- Wrong branch cloned when several branch names starts in the same
- "git tfs" isn't a command, but "git-tfs" is a command HOT 1
- Error while cloning branches by using command. - git tfs clone https://TFSURL/tfs/defaultcollection/ $/ProjectName/Ressursstyring/src/next . --branches=all HOT 2
- How is v0.33.0 supporting Vs2022 as mentioned in the release notes? HOT 3
- Exclude folders from migration. HOT 2
- "GitTfs.Core.GitTfsException: Nothing to checkin!" on "git tfs rcheckin" HOT 5
- Cannot verify the migrated repository 'Unable to cast object of type ....' HOT 3
- Feature Request : Submit git-tfs to winget HOT 2
- .gitattributes ignored HOT 5
- I couldn't run them at first, but then managed to run Checkin Policies on VS2022 HOT 1
- Crash if no VS installed
- Case changing renames in TFS are ignored HOT 3
- How does --ignore-branches-regex work? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-tfs.