Re: [git-users] When a file was locked by some program, git will work stupidly

2015-11-01 Thread Dayong Xie
Yes, that's what I want

在 2015年11月1日星期日 UTC+8下午8:26:13,Magnus Therning写道:
>
> On Sat, Oct 31, 2015 at 03:16:32AM -0700, Dayong Xie wrote: 
> > To be specific 
> > In my Unity project, there is a native plugin, and plugin's extension 
> > is .dll, and this plugin is under git version control, when Unity is 
> > running, the plugin file will be locked. If i merge another branch, 
> > which contains modification of the plugin, git will report error, 
> > looks like: 
> > 
> > error: unable to unlink old 'xxx/xxx.dll' (Permission denied) 
> > 
> > This is not bad, however, the unfinished merge action will not revert 
> > by git, a lot of changes produced in repository. usually it makes me 
> > crazy, even worse, some of my partners are not good at using git. Of 
> > course, this problem can be avoided by quit Unity, but not every time 
> > we can remember. 
> > 
> > In my opinion, git should revert the unfinished 
> > action when the error occurred, not just stop. 
>
> If I understand you you'd like a merge strategy that resembled the 
> result of running `git merge --abort` after a failed merge. 
>
> This request should be posted to the git developers list, see 
> . 
>
> Thanks you, I'll post.

/M 
>
> -- 
> Magnus Therning  OpenPGP: 0xAB4DFBA4 
> email: mag...@therning.orgjabber: mag...@therning.org 
>  
> twitter: magthe   http://therning.org/magnus 
>
> We act as though comfort and luxury were the chief requirements of 
> life, when all that we need to make us happy is something to be 
> enthusiastic about. 
>  -- Albert Einstein 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] When a file was locked by some program, git will work stupidly

2015-11-01 Thread Philip Oakley
- Original Message - 
  From: Dayong Xie 
  To: Git for human beings 
  Sent: Saturday, October 31, 2015 10:16 AM
  Subject: [git-users] When a file was locked by some program, git will work 
stupidly


  To be specific
  In my Unity project, there is a native plugin,  and plugin's extension is 
.dll, and this plugin is 
  under git version control, when Unity is running, the plugin file will be 
locked.
  If i merge another branch, which contains modification of the plugin, git 
will report error, looks 
  like:
  error: unable to unlink old 'xxx/xxx.dll' (Permission denied)
  This is not bad, however, the unfinished merge action will not revert by git, 
a lot of changes 
  produced in repository. 
  usually it makes me crazy, even worse, some of my partners are not 
  good at using git.
  Of course, this problem can be avoided by quit Unity, but not every time we 
can remember. In 
  my opinion, git should revert the unfinished action when the error occurred, 
not just stop.
I believe you can set the file type in .gitattributes and can set the mergetool 
in the config, and crete your own custom merge driver, so that you can easily 
code the method you want. You will need to check the manual for details (I'm 
currently travelling).
--

Philip

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] When a file was locked by some program, git will work stupidly

2015-11-01 Thread Magnus Therning
On Sat, Oct 31, 2015 at 03:16:32AM -0700, Dayong Xie wrote:
> To be specific
> In my Unity project, there is a native plugin, and plugin's extension
> is .dll, and this plugin is under git version control, when Unity is
> running, the plugin file will be locked. If i merge another branch,
> which contains modification of the plugin, git will report error,
> looks like:
>
> error: unable to unlink old 'xxx/xxx.dll' (Permission denied)
>
> This is not bad, however, the unfinished merge action will not revert
> by git, a lot of changes produced in repository. usually it makes me
> crazy, even worse, some of my partners are not good at using git. Of
> course, this problem can be avoided by quit Unity, but not every time
> we can remember.
>
> In my opinion, git should revert the unfinished
> action when the error occurred, not just stop.

If I understand you you'd like a merge strategy that resembled the
result of running `git merge --abort` after a failed merge.

This request should be posted to the git developers list, see
.

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about.
 -- Albert Einstein

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[git-users] When a file was locked by some program, git will work stupidly

2015-10-31 Thread Dayong Xie
To be specific
In my Unity project, there is a native plugin,  and plugin's extension is 
.dll, and this plugin is 
under git version control, when Unity is running, the plugin file will be 
locked.
If i merge another branch, which contains modification of the plugin, git 
will report error, looks 
like:
error: unable to unlink old 'xxx/xxx.dll' (Permission denied)
This is not bad, however, the unfinished merge action will not revert by 
git, a lot of changes 
produced in repository. 
usually it makes me crazy, even worse, some of my partners are not 
good at using git.
Of course, this problem can be avoided by quit Unity, but not every time we 
can remember. In 
my opinion, git should revert the unfinished action when the error 
occurred, not just stop.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.