Re: [PATCH v2] difftool: only copy back files modified during directory diff

2012-07-20 Thread David Aguilar
On Thu, Jul 19, 2012 at 10:34 AM, Junio C Hamano wrote: > David Aguilar writes: > >> Perhaps something like this... > > Yeah, like that ;-). Hmm.. this one was potentially data-losing. Sorry for not catching that in 7e0abcec103b3649943b236881cf88e8fd6cf3a4. $ git tag --contains 7e0abcec103b364

Re: git with large files...

2012-07-20 Thread David Aguilar
On Fri, Jul 20, 2012 at 4:28 PM, Martin Langhoff wrote: > On Fri, Jul 20, 2012 at 6:54 PM, Randal L. Schwartz > wrote: >>> "Darek" == Darek Bridges writes: >> >> Darek> I use git for many things, but I am trying to work out the >> Darek> workflow to use git for deployment. >> >> Don't. > > H

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 10:58 PM, PJ Weisberg wrote: > In your original email, you had one command that did what you wanted > and one that didn't. > > $ git push origin master > $ git push origin feature-work > > Can you spot the difference between them? > Do'h, now I can see the idiocy that I was

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 6:40 PM, Thiago Farina wrote: > On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg > wrote: >> On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: >> >>> What I'm looking for is to upload/create the remote branch in github >>> from inside my local branch, without having to ch

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg wrote: > On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: > >> What I'm looking for is to upload/create the remote branch in github >> from inside my local branch, without having to checkout master in >> order to do so. > > In that case, do exactl

Re: Fix git-svn tests for SVN 1.7.5.

2012-07-20 Thread Ben Walton
Hi Michael, > > I've fixed the git-svn tests for SVN 1.7 and tested with SVN 1.7.5. > > Thanks. git-svn is not maintained by Junio but by Eric and others on > the list. I'm cc-ing Eric and Ben Walton so they can benefit from > your work. This is fantastic. It's been on my todo list but not a

Re: git with large files...

2012-07-20 Thread Martin Langhoff
On Fri, Jul 20, 2012 at 6:54 PM, Randal L. Schwartz wrote: >> "Darek" == Darek Bridges writes: > > Darek> I use git for many things, but I am trying to work out the > Darek> workflow to use git for deployment. > > Don't. Heh. Best to keep in mind that it just doesn't work very well. git-bigf

Re: git with large files...

2012-07-20 Thread Randal L. Schwartz
> "Darek" == Darek Bridges writes: Darek> I use git for many things, but I am trying to work out the Darek> workflow to use git for deployment. Don't. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix cons

Re: [RFC/PATCH] Only call record_resolve_undo() when coming from add/rm

2012-07-20 Thread Thomas Rast
Thomas Rast writes: > Thomas and me discovered this while hacking on index-v5. It would be > a bit tricky to handle there: the index is structured according to the > directory layout of the files it contains, and the REUC data is the > same as the conflict (stages) data plus a flag bit, for (fut

Egit is not included into eclipse bundles

2012-07-20 Thread Eugene Sajine
Hi, I have a strong impression that Egit was supposed to be included into the default eclipse distribution starting from Eclipse Helios. May be it was my wild dream that I would like to become true, but I would appreciate any info about why I still can't see it in Juno? Thanks, Eugene -- To unsub

[RFC/PATCH] Only call record_resolve_undo() when coming from add/rm

2012-07-20 Thread Thomas Rast
The REUC extension stores the stage 1/2/3 data of entries which were marked resolved by the user, to enable 'git checkout -m ' to restore the conflicted state later. When a file was deleted on one side of the merge and unmodified on the other, merge-recursive uses remove_file_from_cache() to remov

Re: [ANNOUNCE] Sharness - Test library derived from Git

2012-07-20 Thread dag
Matthieu Moy writes: > OTOH, having it leave in a subdirectory (e.g. $git/t/Sharness/), and > synchronize with stg like subtree merge would be nice for the user. We > already have something similar for gitk and git-gui, except that the > synchronization is normally one way (subprojects merged int

Re: [PATCH 2/2] git-remote-mediawiki: allow page names with a ':'

2012-07-20 Thread Dan Johnson
On Tue, Jul 17, 2012 at 10:06 AM, Matthieu Moy wrote: > Traditionnally, pages named Foo:Bar are page 'Bar' in namespace 'Foo'. > However, it is also possible to call a page Foo:Bar if 'Foo' is not a > namespace. In this case, the actual name of the page is 'Foo:Bar', in the > main namespace. Since

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: > What I'm looking for is to upload/create the remote branch in github > from inside my local branch, without having to checkout master in > order to do so. In that case, do exactly what you did, except don't checkout master. -PJ Gehm's Cor

git with large files...

2012-07-20 Thread Darek Bridges
I use git for many things, but I am trying to work out the workflow to use git for deployment. I have a wordpress site that i need to track multiple branches of and it has many many resource files, images, video, etc... how can i streamline the performance. ive read about git-annex and also some

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Fri, Jul 20, 2012 at 06:37:02PM +0200, Johannes Sixt wrote: > Am 20.07.2012 17:44, schrieb Jeff King: > > So I think a suffix like ":d" is probably the least horrible. > > Not so. It does not work on Windows :-( in the expected way. Trying to > open a file with a colon-separated suffix either

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Johannes Sixt
Am 20.07.2012 17:44, schrieb Jeff King: > So I think a suffix like ":d" is probably the least horrible. Not so. It does not work on Windows :-( in the expected way. Trying to open a file with a colon-separated suffix either opens a resource fork on NTFS or fails with "invalid path". -- Hannes --

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Johannes Sixt
Am 20.07.2012 11:49, schrieb Michael Haggerty: > Other possibilities (according to git-check-ref-format(1)): > > refs/.heads/.a/.b/c > refs/heads./a./b./c (problematic on some Windows filesystems?) Yes. Probably all filesystems. > refs/heads../a../b../c Same here. > refs/heads~

Re: [PATCH 7/7] rebase (without -p): correctly calculate patches to rebase

2012-07-20 Thread Martin von Zweigbergk
On Fri, Jul 20, 2012 at 1:18 AM, Johannes Sixt wrote: > Am 7/18/2012 9:27, schrieb Martin von Zweigbergk: >> diff --git a/git-rebase--am.sh b/git-rebase--am.sh >> index 37c1b23..fe3fdd1 100644 >> --- a/git-rebase--am.sh >> +++ b/git-rebase--am.sh >> @@ -16,11 +16,9 @@ skip) >> ;; >> esac >>

Re: [PATCH 2/3] teach sha1_name to look in graveyard reflogs

2012-07-20 Thread Jeff King
On Thu, Jul 19, 2012 at 03:39:24PM -0700, Junio C Hamano wrote: > > Similarly, for_each_reflog_ent learns to fallback to > > graveyard refs, which allows the reflog walker to work. > > However, this is slightly less friendly, as the revision > > parser expects the matching ref to exist before it r

Re: pushing branches

2012-07-20 Thread Matthieu Moy
Thiago Farina writes: > $ git push origin master # here I expected it would working pushing my > commits to a feature-work branch in github. Or if I omit master it > gives me a [rejected] error. > Everything up-to-date. If your workflow is to push one branch at a time, and you have the same nami

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Fri, Jul 20, 2012 at 08:42:57AM -0700, Junio C Hamano wrote: > Jeff King writes: > > > But it would mean that you cannot naively run > > > > echo $sha1 >.git/refs/heads/foo > > > > anymore. I suspect that the packed-refs conversion rooted out many > > scripts that did not use update-ref and

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 12:46 PM, Junio C Hamano wrote: > Thiago Farina writes: > >> How can I push a working branch to github inside it? >> >> E.g: >> >> # On master: >> $ git checkout -b feature-work >> >> # On feature-work >> # vi, hack, commit, ready to push >> $ git push origin master # here

Re: pushing branches

2012-07-20 Thread Konstantin Khomoutov
On Fri, 20 Jul 2012 12:26:09 -0300 Thiago Farina wrote: > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working push

Re: [PATCH 4/7] git-rebase--interactive.sh: look up subject in add_pick_line

2012-07-20 Thread Martin von Zweigbergk
Thanks for reviewing. On Fri, Jul 20, 2012 at 1:14 AM, Johannes Sixt wrote: > Am 7/18/2012 9:27, schrieb Martin von Zweigbergk: >> @@ -814,7 +814,8 @@ add_pick_line () { >> else >> comment_out= >> fi >> - printf '%s\n' "${comment_out}pick $1 $2" >>"$todo" >> + li

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 8:26 AM, Thiago Farina wrote: > Hi, > > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working pu

Re: pushing branches

2012-07-20 Thread Junio C Hamano
Thiago Farina writes: > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working pushing my "git push origin master" is a

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Fri, Jul 20, 2012 at 11:49:07AM +0200, Michael Haggerty wrote: > >This patch moves reflog entries into a special "graveyard" > >namespace, and appends a tilde (~) character, which is > >not allowed in a valid ref name. This means that the deleted > >reflogs of these refs: > > > >refs/heads/

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Junio C Hamano
Jeff King writes: > But it would mean that you cannot naively run > > echo $sha1 >.git/refs/heads/foo > > anymore. I suspect that the packed-refs conversion rooted out many > scripts that did not use update-ref and rev-parse to access refs, but > the above does still work today. So I suspect th

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Junio C Hamano
Jeff King writes: > I noticed I ignored the "discover" and "delete" parts of your paragraph. > As far as deletion goes, I think we can ignore it; expiring all entries > is equivalent. > ... > In other words, I want to focus on getting the ref-level plumbing right, > and then we can care about the

pushing branches

2012-07-20 Thread Thiago Farina
Hi, How can I push a working branch to github inside it? E.g: # On master: $ git checkout -b feature-work # On feature-work # vi, hack, commit, ready to push $ git push origin master # here I expected it would working pushing my commits to a feature-work branch in github. Or if I omit master it

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Fri, Jul 20, 2012 at 10:43:37AM -0400, Jeff King wrote: > > I think the work-around indicates the need for regular users to be > > able to also discover, prune and delete these logs. Do we have > > "prune reflog for _this_ ref (or these refs), removing entries that > > are older than this thre

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Thu, Jul 19, 2012 at 03:36:09PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Only one test needed to be updated; t7701 tries to create > > unreachable objects by deleting branches. Of course that no > > longer works, which is the intent of this patch. The test > > now works around i

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Alexey Muranov
On 20 Jul 2012, at 16:26, Jeff King wrote: > On Fri, Jul 20, 2012 at 12:23:12AM +0200, Alexey Muranov wrote: > >> i have no idea about Git source and little idea of how it is working >> internally, but reading through your message i wonder: wouldn't it be >> a good idea to timestamp the dead refl

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Jeff King
On Fri, Jul 20, 2012 at 12:23:12AM +0200, Alexey Muranov wrote: > i have no idea about Git source and little idea of how it is working > internally, but reading through your message i wonder: wouldn't it be > a good idea to timestamp the dead reflogs ? Each individual entry in the reflog has its

Re: [ANNOUNCE] Sharness - Test library derived from Git

2012-07-20 Thread Matthieu Moy
Mathias Lafeldt writes: > On Tue, Jul 17, 2012 at 8:31 PM, Ævar Arnfjörð Bjarmason > wrote: > >> Perhaps to avoid duplication we could move to this and keep >> Git-specific function in some other file. > > That would be fantastic! From a technical point of view, it would make > a lot of sense to

Re: [ANNOUNCE] Sharness - Test library derived from Git

2012-07-20 Thread Mathias Lafeldt
On Tue, Jul 17, 2012 at 8:31 PM, Ævar Arnfjörð Bjarmason wrote: > Nice, I thought about doing something like this myself but never had the time. Thanks. Took quite some time to take out the Git-specific functionality. And there's still a lot of room for improvement. > Perhaps to avoid duplicatio

Re: [RFC] Add a new email notification script to "contrib"

2012-07-20 Thread Michael Haggerty
On 07/14/2012 08:59 AM, mhag...@alum.mit.edu wrote: Add a new Python script, contrib/hooks/post-receive-multimail.py, that can be used to send notification emails describing pushes into a git repository. [...] Thanks to everybody for your feedback. I will try to incorporate it in a new versi

Re: [PATCH 1/3] retain reflogs for deleted refs

2012-07-20 Thread Michael Haggerty
On 07/19/2012 11:33 PM, Jeff King wrote: [...] This cannot be done by simply leaving the reflog files in place. The ref namespace does not allow D/F conflicts, so a ref "foo" would block the creation of another ref "foo/bar", and vice versa. This limitation is acceptable for two refs to exist sim

Re: [PATCH 7/7] rebase (without -p): correctly calculate patches to rebase

2012-07-20 Thread Johannes Sixt
Am 7/18/2012 9:27, schrieb Martin von Zweigbergk: > diff --git a/git-rebase--am.sh b/git-rebase--am.sh > index 37c1b23..fe3fdd1 100644 > --- a/git-rebase--am.sh > +++ b/git-rebase--am.sh > @@ -16,11 +16,9 @@ skip) > ;; > esac > > -test -n "$rebase_root" && root_flag=--root > test -n "$kee

Re: [PATCH 4/7] git-rebase--interactive.sh: look up subject in add_pick_line

2012-07-20 Thread Johannes Sixt
Am 7/18/2012 9:27, schrieb Martin von Zweigbergk: > @@ -814,7 +814,8 @@ add_pick_line () { > else > comment_out= > fi > - printf '%s\n' "${comment_out}pick $1 $2" >>"$todo" > + line=$(git rev-list -1 --pretty=oneline --abbrev-commit --abbrev=7 $1) > + printf '%

Re: Feature request: fetch --prune by default

2012-07-20 Thread Alexey Muranov
On 20 Jul 2012, at 09:11, Johannes Sixt wrote: > Am 7/19/2012 23:20, schrieb Alexey Muranov: >> On 19 Jul 2012, at 19:34, Konstantin Khomoutov wrote: >> >>> On Thu, 19 Jul 2012 18:21:21 +0200 Alexey Muranov >>> wrote: >>> >>> [...] I do not still understand very well some aspects of Git,

Re: Feature request: fetch --prune by default

2012-07-20 Thread Johannes Sixt
Am 7/19/2012 23:20, schrieb Alexey Muranov: > On 19 Jul 2012, at 19:34, Konstantin Khomoutov wrote: > >> On Thu, 19 Jul 2012 18:21:21 +0200 Alexey Muranov >> wrote: >> >> [...] >>> I do not still understand very well some aspects of Git, like the >>> exact purpose of "remote tracking branches"