Re: Why is "Sparse checkout leaves no entry on working directory" a fatal error?

2019-10-09 Thread Josef Wolf
Thanks for your comprehensive answer, Elijah! On Di, Okt 08, 2019 at 09:14:27 -0700, Elijah Newren wrote: > On Mon, Oct 7, 2019 at 11:52 PM Josef Wolf wrote: > > > > I am trying to add a file to an arbitrary branch without touching the > > current > > worktree

Why is "Sparse checkout leaves no entry on working directory" a fatal error?

2019-10-07 Thread Josef Wolf
y all the time. Someone understands this inconsistent behaviour? Thanks, -- Josef Wolf j...@raven.inka.de

Why is "Sparse checkout leaves no entry on working directory" fatal?

2019-09-23 Thread Josef Wolf
some repositories at this machine where the .git/info/sparse-checkout file contains only non-existing files and git happily executes this "git checkout -b XXX remotes/origin/XXX" command leaving the working tree totally empty all the time. Someone understands this inconsistent behaviour? -- Josef Wolf j...@raven.inka.de

Re: Need help migrating workflow from svn to git.

2017-12-20 Thread Josef Wolf
On Wed, Dec 20, 2017 at 12:43:37PM +0100, Josef Wolf wrote: > Thanks to you both for your patience with me. Sorry for the late reply, my day > job was needing me ;-) > > On Fri, Dec 15, 2017 at 07:58:14PM +0100, Igor Djordjevic wrote: > > On 15/12/2017 17:33, Ju

Re: Need help migrating workflow from svn to git.

2017-12-20 Thread Josef Wolf
do it correctly. Never doing local modifications in the "live" directories would require to install test systems and simulate their environment just for doing some minor adjustments. -- Josef Wolf j...@raven.inka.de

Re: Need help migrating workflow from svn to git.

2017-12-20 Thread Josef Wolf
he mix, to "silence" actually still unresolved merge > conflicts, making next script execution possible, make sense? > > Yes, `git diff` won`t be the same as if conflicts were still in, but > it might be worth it in this specific case, conflicting parts still > easily visible between conflict markers. That means, the conflict is still there, but git would think this is an ordinary modification? -- Josef Wolf j...@raven.inka.de

Re: Need help migrating workflow from svn to git.

2017-12-15 Thread Josef Wolf
ight there where cron executes has the benefit that cron uses the same modifications which I am using. This way, whenever cron decides to execute, it is exactly the same as if I would do a "make run" on the command line. Since all the scripts are designed to be idempotent, everything wor

Re: Need help migrating workflow from svn to git.

2017-12-15 Thread Josef Wolf
are at risk which are locally modified AND which have been changed upstream. With git-stash, EVERY locally modified file is at risk. > I`m thinking of a workflow involving (scripted) creation of a > temporary branch at fetched remote branch position, and using > something like `git checkout --merge ` to merge your > local modifications to latest changes fetched from remote (ending up > with conflicts inside working tree, if any), But this would require local modifications to be committed? -- Josef Wolf j...@raven.inka.de

Re: Need help migrating workflow from svn to git.

2017-12-15 Thread Josef Wolf
27;t seem to have an option to specify "remote is ahead of me". How would I properly check whether a merge is actually needed? -- Josef Wolf j...@raven.inka.de

Need help migrating workflow from svn to git.

2017-12-14 Thread Josef Wolf
o test. Even worse: if I happen to save one of the modified files while the modifications are in the stash, the "git stash pop" will definitely cause a conflict, although nothing really changed. So, how would I get this workflow with git? Is it possible to emulate the behavior of "svn update"? Any ideas? -- Josef Wolf j...@raven.inka.de

Re: error: src refspec refs/heads/master matches more than one.

2014-02-14 Thread Josef Wolf
and when not? It looks like git delibaretly cuts off this prefix in some situations. I don't think my problem stems from something like "git branch refs/heads/master" Anyway, some clarifications about the usage of this prefix would be great! -- Josef Wolf j...@raven.inka.de -- T

Re: error: src refspec refs/heads/master matches more than one.

2014-02-14 Thread Josef Wolf
On Fri, Feb 14, 2014 at 04:35:14PM +0100, David Kastrup wrote: > Josef Wolf writes: > > The only command in this script that uses "heads" is > > > > git symbolic-ref HEAD "refs/heads/$new_branch" > > > You probably should check how $new_b

Re: error: src refspec refs/heads/master matches more than one.

2014-02-14 Thread Josef Wolf
On Fri, Feb 14, 2014 at 07:59:18PM +0700, Duy Nguyen wrote: > On Fri, Feb 14, 2014 at 7:45 PM, Andreas Schwab wrote: > > Josef Wolf writes: > > > >> Notice the refs/heads _within_ refs/heads! > > Probably you did something like "git branch refs/heads/master&

error: src refspec refs/heads/master matches more than one.

2014-02-14 Thread Josef Wolf
the best way to recover? Any ideas? PS: this is git-1.8.1.4. -- Josef Wolf j...@raven.inka.de -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Re-Transmission of blobs?

2013-09-24 Thread Josef Wolf
On Tue, Sep 24, 2013 at 03:36:13AM -0400, Jeff King wrote: > On Fri, Sep 20, 2013 at 11:27:15AM +0200, Josef Wolf wrote: > > Even without asking, we can assume with great probability that > > origin/somebranch is available at origin. > Bear in mind that the transfer process d

Re: Re-Transmission of blobs?

2013-09-20 Thread Josef Wolf
On Mon, Sep 16, 2013 at 05:55:36PM -0400, Jeff King wrote: > On Fri, Sep 13, 2013 at 12:09:35PM +0200, Josef Wolf wrote: > > > > > I'm not sure I understand correctly. I see that bitmaps can be used to > > > > implement set operations. But how comes that walkin

Re: Re-Transmission of blobs?

2013-09-13 Thread Josef Wolf
AStick > > replace clone with fetch for that use case too Last time I checked, cloning could not be resumed: http://git.661346.n2.nabble.com/git-clone-and-unreliable-links-td7570652.html If you're on a slow/unreliable link, you've lost. :-( :-( :-( -- Josef Wolf j...@raven.ink

Re: Re-Transmission of blobs?

2013-09-13 Thread Josef Wolf
On Thu, Sep 12, 2013 at 03:44:53PM -0400, Jeff King wrote: > On Thu, Sep 12, 2013 at 12:35:32PM +0200, Josef Wolf wrote: > > > I'm not sure I understand correctly. I see that bitmaps can be used to > > implement set operations. But how comes that walking the graph require

Re: Re-Transmission of blobs?

2013-09-12 Thread Josef Wolf
On Do, Sep 12, 2013 at 05:23:40 -0400, Jeff King wrote: > On Thu, Sep 12, 2013 at 09:42:41AM +0200, Josef Wolf wrote: > > I think Junio is referring to the reachability bitmap work. We may know > that the other side has commit "E" (and therefore every object reachable >

Re: Re-Transmission of blobs?

2013-09-12 Thread Josef Wolf
On Mi, Sep 11, 2013 at 10:14:54 -0700, Junio C Hamano wrote: > Josef Wolf writes: > > On Di, Sep 10, 2013 at 10:51:02 -0700, Junio C Hamano wrote: > >> Consider this simple history with only a handful of commits (as > >> usual, time flows from left to right):

Re: Re-Transmission of blobs?

2013-09-11 Thread Josef Wolf
. I guess this operation would be called set-difference in english. And if the receiving side would have told that it has heads X Y Z in addition, and the sending side happens to have Y, then the sending side could in addition remove any objects that can be reached from Y from the sending list.

Re-Transmission of blobs?

2013-09-10 Thread Josef Wolf
Total 3 (delta 0), reused 0 (delta 0) To /home/jw/test/1 97e52e2..9e8f1c6 master -> master updating local tracking ref 'refs/remotes/origin/master' $ As we can see in this example, the big file is tranferred back to the first repository, although it is already available

git-clone and unreliable links?

2012-11-07 Thread Josef Wolf
Hello, When using git-clone over an unreliable link (say, UMTS) and the network goes down, git-clone deletes everything what was downloaded. When the network goes up again and you restart git-clone, it has to start over from the beginning. Then, eventually, the network goes down again, and everyth

Re: What about SHA-1 collisions?

2012-11-06 Thread Josef Wolf
On Tue, Nov 06, 2012 at 09:41:29PM +, John McKown wrote: > Josef Wolf raven.inka.de> writes: > > Just for curiosity: what would happen if such a collision would occur within > > one repository? > In a sense, this cannot happen. In the scenario you described, contents of

Re: Workflow for templates?

2012-11-06 Thread Josef Wolf
On Tue, Nov 06, 2012 at 08:21:25PM +, Pyeron, Jason J CTR (US) wrote: > Maybe I lost sight of your problem. Can you give a specific example of where > "it" does not work? I guess it's _me_ who's lost. I can't figure how this is supposed to work. Maybe you have an example? -- To unsubscribe fr

What about SHA-1 collisions?

2012-11-06 Thread Josef Wolf
Hello, we all know, the probability for SHA-1 collisions is very, very low, almost non-existant. But we also know that they are not impossible. Just for curiosity: what would happen if such a collision would occur within one repository? -- To unsubscribe from this list: send the line "unsubscribe

Rebasing published branches?

2012-11-06 Thread Josef Wolf
Hello, I know, I should never rebase published branches. But... I frequently work on different computers and would like to share my private branches across them. When done and the feature is in a good shape, I'd like to rebase to clean up history before I make it available to other people. I gue

Re: Workflow for templates?

2012-11-06 Thread Josef Wolf
No suggestions on this one? On Wed, Oct 31, 2012 at 11:44:04AM +0100, Josef Wolf wrote: > I am somewhat unsure whether it would work this way. After all, there seems to > be an unbreakable rule with git: never rebase published branches. > > Thus, once I have published my work to othe

Re: Workflow for templates?

2012-10-31 Thread Josef Wolf
On Sat, Oct 27, 2012 at 08:45:45PM +0200, Enrico Weigelt wrote: > I'd suggest a 3 level branch hierachy (IOW: the lower level > is rebased ontop of the next higher level): > > * #0: upstream branch > * #1: generic local maintenance branch > * #2: per-instance cutomization branches > > Normal addi

Workflow for templates?

2012-10-25 Thread Josef Wolf
Hello everybody, I am looking for a setup where teplates can be handled easily. For a better explanation of what I'm trying to achieve, I use the apache httpd project as an example. Apache httpd provides an extensively commented httpd.conf template, which users can use as a starting point for th