does dmca push us further toward distributed rev control?
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: does dmca push us further toward distributed rev control
 by Braids » 08 Aug 2011, 22:09
by Braids » 08 Aug 2011, 22:09 
i . . . don't know what to say. i guess i'm glad i finally learned to use git in a team environment. nothing can change that now.
here is a logical comparison.
svn positives:
git's advantages:
perhaps it would be better to ask other committers. {funnier if i call them pushers}. i don't really want to vote, because i do not know when my participation is going to taper off.
			here is a logical comparison.
svn positives:
- as Rob mentioned, administration is probably easier here at slightlymagic.
- it has beautiful centralized rev numbers.
- subclipse's integration with slightlymagic will probably be better than egit's integration with gitorious.
- svn probably doesn't need a separate client (like SmartGit).
- i can try git-svn if i want to do some branching or if svn seems too slow.
git's advantages:
- git is very fast.
- it is much cleaner to do branching in git.
- we have detailed documentation for using git. i do not know when i will have the personal energy necessary to document our subversion use to the same level of detail. someone else will probably have to do it.
- SmartGit is smart.
perhaps it would be better to ask other committers. {funnier if i call them pushers}. i don't really want to vote, because i do not know when my participation is going to taper off.
"That is the dumbest thing I've ever seen."  --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something.  
		
- 
				 
 Braids
- Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: does dmca push us further toward distributed rev control
 by Braids » 08 Aug 2011, 22:20
by Braids » 08 Aug 2011, 22:20 
between Add and Commit? yes. do a Hard Reset on the one file, destroying your working changes to it only.Chris H. wrote:When we run forge from Eclipse the deck file for JuzamjediCube.dck changes. If during an Add we include this file unintentially, is there a way that we can revert this one file to the version of this file located at Gitorious cardforge master?
edit: it's even easier in SmartGit. browse to JuzamjeduCube.dck, click on it, then click the Local menu, then Discard.
re-install?Chris H. wrote:It seems to me that this could at times be a useful way to back out of a mistake without having to re-install.
"That is the dumbest thing I've ever seen."  --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something.  
		
- 
				 
 Braids
- Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: does dmca push us further toward distributed rev control
 by Chris H. » 08 Aug 2011, 23:12
by Chris H. » 08 Aug 2011, 23:12 
`Braids wrote:between Add and Commit? yes. do a Hard Reset on the one file, destroying your working changes to it only.
What should we use prior to an Add? Hard Reset? After a commit but before a Push?
Oh, the Hard Reset seems to require that we highlight the ForgeGit master folder and is not active if we select a file within the project.
Is there away to only revert a single file? This would allow us to keep another changed file that is OK in our local copy.
- 
				 
 Chris H.
- Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: does dmca push us further toward distributed rev control
 by Chris H. » 08 Aug 2011, 23:16
by Chris H. » 08 Aug 2011, 23:16 
I can go either way, SVN or Git.
Git might be more obvious and less hidden from public view than the propsed SVN.
			
		Git might be more obvious and less hidden from public view than the propsed SVN.
- 
				 
 Chris H.
- Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: does dmca push us further toward distributed rev control
 by Braids » 09 Aug 2011, 00:27
by Braids » 09 Aug 2011, 00:27 
your question is odd, which makes me want to clarify how git works. a file has multiple states within Git: untracked, tracked+unmodified, tracked+modified, staged, committed locally, and pushed. there are others, but they are obscure.Chris H. wrote:`Braids wrote:between Add and Commit? yes. do a Hard Reset on the one file, destroying your working changes to it only.
What should we use prior to an Add? Hard Reset? After a commit but before a Push?
- after a fresh clone or pull operation, most files are in the tracked+unmodified state.
- creating a new file or directory in the working folder places them in the untracked state.
- editing a tracked+unmodified file turns it tracked+modified.
- adding an untracked file makes it staged.
- also, adding a tracked+modified file makes it staged.
- if memory serves correct, adding an untracked directory causes all of its contents to be recursively staged as well.
- committing an untracked file, a tracked+modified file, a staged file, or any directory causes it to be committed locally.
- all the files and directories that were committed at one time are packaged into a unit called a commit. the commit is the "unit of transport" for a push or pull.
- pushing any number of commits causes them to be pushed, which is another way of saying they have been committed remotely.
pushing and pulling are the same operation, just in different directions. they both attempt to send and apply recent commits in one repository (your local clone or gitorious) to the other.
does that help?
you may have missed my previous edit. SmartGit has a delightful feature called Discard, which discards (resets) all your changes to a single file.Chris H. wrote:Oh, the Hard Reset seems to require that we highlight the ForgeGit master folder and is not active if we select a file within the project.
Is there away to only revert a single file? This would allow us to keep another changed file that is OK in our local copy.
the only thing i've found EGit better than SmartGit at is reversing commits. even then, i think it's just a matter of education.
"That is the dumbest thing I've ever seen."  --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something.  
		
- 
				 
 Braids
- Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: does dmca push us further toward distributed rev control
 by Chris H. » 09 Aug 2011, 00:50
by Chris H. » 09 Aug 2011, 00:50 
Thank you for the explanation. I suspected that the Hard Reset would revert all of my changed local files at any place between the file(s) saved with edits all the way to right before a push to Git.
I want to spend some more time getting used to SmartGit. It looks like SmartGit can revert a single file while EGit may need to do it via a command other than Hard Reset (Team -> Replace With -> HEAD Revision ?).
			
		I want to spend some more time getting used to SmartGit. It looks like SmartGit can revert a single file while EGit may need to do it via a command other than Hard Reset (Team -> Replace With -> HEAD Revision ?).
- 
				 
 Chris H.
- Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: does dmca push us further toward distributed rev control
 by Braids » 09 Aug 2011, 03:19
by Braids » 09 Aug 2011, 03:19 
yes, it is my belief that hard resets can vaporize local commits. (i think snacko says you can actually find the commit somewhere, but i have no evidence.)Chris H. wrote:Thank you for the explanation. I suspected that the Hard Reset would revert all of my changed local files at any place between the file(s) saved with edits all the way to right before a push to Git.
yes, that EGit command should do it. nice job!Chris H. wrote:I want to spend some more time getting used to SmartGit. It looks like SmartGit can revert a single file while EGit may need to do it via a command other than Hard Reset (Team -> Replace With -> HEAD Revision ?).
the local HEAD is the local commit (plus history) that Git is currently showing. each repository has a HEAD; the remote repository's head is usually called origin/master. (actually, each branch has a head, but let's just pretend that each repository only has a main/master branch.)
"That is the dumbest thing I've ever seen."  --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something.  
		
- 
				 
 Braids
- Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: does dmca push us further toward distributed rev control
 by jendave » 09 Aug 2011, 06:43
by jendave » 09 Aug 2011, 06:43 
This is true. I forget exactly where in .git it is, but you can find old commits. The 'git gc' command clears them out.Braids wrote:yes, it is my belief that hard resets can vaporize local commits. (i think snacko says you can actually find the commit somewhere, but i have no evidence.)
Re: does dmca push us further toward distributed rev control
 by Sloth » 09 Aug 2011, 11:55
by Sloth » 09 Aug 2011, 11:55 
Since I've used tortoiseSVN for SVN and tortoiseGit for Git and they are pretty similar, I can live with both SVN and Git.
			
		- 
				 
 Sloth
- Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: does dmca push us further toward distributed rev control
 by friarsol » 09 Aug 2011, 11:58
by friarsol » 09 Aug 2011, 11:58 
I use the pair as well, so I'm comfortable enough with either direction.Sloth wrote:Since I've used tortoiseSVN for SVN and tortoiseGit for Git and they are pretty similar, I can live with both SVN and Git.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: does dmca push us further toward distributed rev control
 by jendave » 09 Aug 2011, 14:58
by jendave » 09 Aug 2011, 14:58 
Can anyone do a pull from gitorious? I am getting "Permission Denied" errors. I have not changed anything. Strange.
			
		Re: does dmca push us further toward distributed rev control
 by Rob Cashwalker » 09 Aug 2011, 15:04
by Rob Cashwalker » 09 Aug 2011, 15:04 
No doubt this is a good learning experience... these are the sorts of things we don't learn in school, and unless you work in a corporate environment, SCC isn't usually a necessary skill. Even in my corporate environment, SCC is a non-issue, though I'm leaning towards wanting to begin an SVN server since Visual Source Safe sucks....Braids wrote:i . . . don't know what to say. i guess i'm glad i finally learned to use git in a team environment. nothing can change that now.
You want the version number to be more prominent in the bug reporting? Hex codes won't cut it.[*]it has beautiful centralized rev numbers.
Except when it can't merge and it surrounds the entirety of two versions of a file as changed, and I have to hunt down the differences. Then, I painfully weep, as I manually merge files I didn't even change in the first place....[*]git is very fast.
[quote[*]we have detailed documentation for using git. i do not know when i will have the personal energy necessary to document our subversion use to the same level of detail. someone else will probably have to do it.[/quote] Strangely, we never NEEDED this level of documentation for SVN. We're grateful for the effort, documentation is always the un-fun part.
If they're so smart then why haven't they integrated into eclipse?[*]SmartGit is smart.
Think about how much time you've spent trying to make git work and documenting it. It's just distracting you from the fun stuff, coding up new functionality.because i do not know when my participation is going to taper off.
edit - Dave, I don't know about permissions, but EGit caught an exception, but no clear description about why.
The Force will be with you, Always.
		- 
				 
 Rob Cashwalker
- Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: does dmca push us further toward distributed rev control
 by jendave » 09 Aug 2011, 16:09
by jendave » 09 Aug 2011, 16:09 
NM. I re-cloned and it looks fine.jendave wrote:Can anyone do a pull from gitorious? I am getting "Permission Denied" errors. I have not changed anything. Strange.
Re: does dmca push us further toward distributed rev control
 by Chris H. » 09 Aug 2011, 16:10
by Chris H. » 09 Aug 2011, 16:10 
`jendave wrote:Can anyone do a pull from gitorious? I am getting "Permission Denied" errors. I have not changed anything. Strange.
I am getting the same thing on my end. There is a link to Show Error Log displayed in the Problem Occurred dialog and this might make some sense to someone with more tech ability than myself.
- 
				 
 Chris H.
- Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: does dmca push us further toward distributed rev control
 by Chris H. » 09 Aug 2011, 17:39
by Chris H. » 09 Aug 2011, 17:39 
`Chris H. wrote:`jendave wrote:Can anyone do a pull from gitorious? I am getting "Permission Denied" errors. I have not changed anything. Strange.
I am getting the same thing on my end. There is a link to Show Error Log displayed in the Problem Occurred dialog and this might make some sense to someone with more tech ability than myself.
I am trying to do a pull from SmartGit. It displays the SSH Authentication dialog. The path to my Private Key File looks OK:
/Users/myaccount/.ssh/id_dsa
I type in my passphrase and click on Login and do this repeatedly. It is not being accepted. The SSH Authentication dialog is displayed once again and asks for the passphrase. I wonder if this is related to the recent problem with Eclipse not being able to do a pull.
- 
				 
 Chris H.
- Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Who is online
Users browsing this forum: No registered users and 31 guests
