Re: Optimizing writes to unchanged files during merges?

2018-04-16 Thread Stefan Haller
Lars Schneider wrote: > An engineer works on a task branch and runs incremental builds — all > is good. The engineer switches to another branch to review another > engineer's work. This other branch changes a low-level header file, > but no rebuild is triggered. The

Re: [PATCH] gitk: different color for boundary commits

2017-08-25 Thread Stefan Haller
;https://public-inbox.org/git/571f6852.1070...@qt.io/T/#u>, which doesn't explain *why* gitk shows the boundary commits in the first place.) In my opinion, when saying "gitk --author=foo", the list of commits in the top pane should look the same as the ouput of "git log --o

Re: [PATCH] push: disable lazy --force-with-lease by default

2017-07-07 Thread Stefan Haller
do this in my experience, and I certainly never want to. What I'm getting at is that there's a lot of things that you have to remember to not do in order to make --force-with-lease without parameter a useful tool. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-12 Thread Stefan Haller
it do this automatically. I'd be interested in your thoughts about that proposal, Junio; you didn't say anything about that at all yet. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-12 Thread Stefan Haller
Jeff King <p...@peff.net> wrote: > On Tue, Apr 11, 2017 at 02:37:27PM +0200, Stefan Haller wrote: > > > Are you talking about the case where the user doesn't say git pull, but > > instead says "git fetch && git merge --ff @{u}"? Just so that I > &g

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-12 Thread Stefan Haller
Stefan Haller <li...@haller-berlin.de> wrote: > Then, every command that either integrates the remote tracking branch > into the local branch, or updates the remote tracking branch to the > local branch, will update the value of the "lease" entry. The most > obvious

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-11 Thread Stefan Haller
ush and pull with no arguments. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-11 Thread Stefan Haller
Jeff King <p...@peff.net> wrote: > On Sun, Apr 09, 2017 at 10:38:42AM +0200, Stefan Haller wrote: > > > I think it's wrong to think about these leases as something that you > > take before you start a rewindy operation. That's the wrong time to take > > the l

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-11 Thread Stefan Haller
Jacob Keller <jacob.kel...@gmail.com> wrote: > On Sun, Apr 9, 2017 at 4:00 AM, Stefan Haller <hal...@ableton.com> wrote: > > > Maybe I wasn't clear enough about that in my proposal, but I propose to > > always store the commit hash of the remote tracking branch

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-09 Thread Stefan Haller
ough about that in my proposal, but I propose to always store the commit hash of the remote tracking branch as a new lease after push and pull, not the local branch. This way it works nicely with pull --rebase and a branch that has extra local commits. -- Stefan Haller Ableton http://www.ableton.com/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-09 Thread Stefan Haller
I think that may be converging on the "integrate" refs that Stefan is > talking about elsewhere (or some isomorphism of it). Does it make things clearer if we don't use the term "integrate", but call the config value in my proposal simply "branch.*.lease"? -- Stefan Haller Ableton http://www.ableton.com/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-09 Thread Stefan Haller
nes that you haven't seen before. But what if the other party has rewritten the branch and squashed improvements into commits in the middle of it? The head commit will then look the same as before, and the only way to tell whether you are overwriting something new is by comparing the old and new hashes. S

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-08 Thread Stefan Haller
Ævar Arnfjör? Bjarmason <ava...@gmail.com> wrote: > On Sat, Apr 8, 2017 at 5:03 PM, Stefan Haller <li...@haller-berlin.de> wrote: > > > Here's a rough proposal for how I would imagine this to work. > > > > For every local branch that has a remote tracking br

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-08 Thread Stefan Haller
ight word here. The point of --force-with-lease is to provide a guarantee, so if you can't trust the guarantee, it makes the feature rather pointless. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-08 Thread Stefan Haller
then investigate the situation and either use push -f or manually update branch.*.integrated when they have convinced themselves that everything is fine. I find it essential that --force-with-lease might fail erroneously, but never succeed erroneously, and I think this proposal would guarantee that. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

2017-04-08 Thread Stefan Haller
y not qualified enough to work on this myself though, but I'm happy to give input if someone else wants to. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Limitiations of git rebase --preserve-merges --interactive

2016-09-23 Thread Stefan Haller
rebase -i -p", which I guess means "use the initially given todo sheet unchanged". I don't see any tests that do an interactive rebase and actually change the todo list. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Limitiations of git rebase --preserve-merges --interactive

2016-09-23 Thread Stefan Haller
still talks about the issues in very generic terms ("most attempts to rearrange patches"). I'm interested in more details as to exactly what kind of attempts do or don't work. In particular, I'm interested in fixup/squash commands (without reordering anything else), or dropping (non-merge)

Limitiations of git rebase --preserve-merges --interactive

2016-09-20 Thread Stefan Haller
xup" or "squash" commands in the todo sheet.) Will dropping commits work? Does it make sense to insert "exec" commands, or will they run at arbitrary times? -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/

Re: Fast-forward able commit, otherwise fail

2016-07-12 Thread Stefan Haller
Junio C Hamano wrote: > Another thing to consider is that the proposed workflow would not > scale if your team becomes larger. Requiring each and every commit > on the trunk to be a merge commit, whose second parent (i.e. the tip > of the feature branch) fast-forwards to the

Re: [PATCH v2] gitk: Add a Copy commit summary command

2015-07-17 Thread Stefan Haller
/. -- Stefan Haller Berlin, Germany http://www.haller-berlin.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: pre-commit hook not run on conflict resolution during rebase

2015-05-29 Thread Stefan Haller
Junio C Hamano gits...@pobox.com wrote: li...@haller-berlin.de (Stefan Haller) writes: I guess the next best solution would be to also have a pre-push hook that performs the same checks again, just in case the bad code managed to get past the pre-commit hook for some reason or other

pre-commit hook not run on conflict resolution during rebase

2015-05-28 Thread Stefan Haller
the next best solution would be to also have a pre-push hook that performs the same checks again, just in case the bad code managed to get past the pre-commit hook for some reason or other. This feels very redundant, but I guess it would work well. Any other suggestions? -- Stefan Haller Berlin

Re: [wish] Revert changes in git gui

2014-12-09 Thread Stefan Haller
, but it works well (except when you already took some time to selectively stage hunks or lines for the next commit). So yes, a context menu for this would be very welcome. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/ -- To unsubscribe from this list: send the line unsubscribe git

Re: [PATCH] gitk: Enable mouse horizontal scrolling in diff pane

2014-11-16 Thread Stefan Haller
scrolling. I never posted this patch because I bet many people like the current behaviour. Just so you know that such a change might be controversial. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/ -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: bug: git merge --no-commit loses track of file modes in the index

2014-06-13 Thread Stefan Haller
run into it once in a while, and it's pretty annoying; but I still didn't get around to it yet. -- Stefan Haller Berlin, Germany http://www.haller-berlin.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

Re: `git stash pop` UX Problem

2014-02-26 Thread Stefan Haller
it happened to me too that I forgot to drop a stash after resolving conflicts, so I'd appreciate a feature that somehow does this automatically for me. -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/ -- To unsubscribe from this list: send the line unsubscribe git in the body of a message

Re: [PATCH v2] gitk: make pointer selection visible in highlighted lines

2013-12-02 Thread Stefan Haller
. Can't we just raise the currentsearchhit tag above the sel tag? -- Stefan Haller Berlin, Germany http://www.haller-berlin.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

[PATCH] gitk: Add First parent checkbox

2013-10-31 Thread Stefan Haller
Sometimes it's desirable to see what changes were introduced by a merge commit, rather than how conflicts were resolved. This adds a checkbox which, when turned on, makes gitk show the equivalent of git show --first-parent commit for merge commits. Signed-off-by: Stefan Haller ste...@haller

Re: Show patch in gitk --first-parent ?

2013-10-30 Thread Stefan Haller
parent checkbox rather often. -- Stefan Haller Berlin, Germany http://www.haller-berlin.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

gitk: Show origin of this line triggered programatically

2013-07-18 Thread Stefan Haller
80acb168ef13a55521e9b821450800450660769d Mon Sep 17 00:00:00 2001 From: Stefan Haller ste...@haller-berlin.de Date: Thu, 18 Jul 2013 18:55:11 +0200 Subject: [PATCH] gitk: Add options --select-file and --select-line These can be used in combination with --select-commit to jump to a given line in a patch

[PATCH v2] git-gui: bring Wish process to front on Mac

2013-06-07 Thread Stefan Haller
of the startup sequence are actually seen by the user. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- Changes since the first patch: - add catch - specify full path to /usr/bin/osascript git-gui.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/git-gui.sh b/git

Re: [PATCH] git-gui: bring Wish process to front on Mac

2013-06-07 Thread Stefan Haller
Junio C Hamano gits...@pobox.com wrote: Stefan (as your name appears in 76bf6ff93e, I am assuming that you were the OSX-osascript guru in that commit) could you keep an eye on the list traffic to see if users of latest gitk have issues with that change, please? Sure, will do. -- Stefan

[PATCH] git-gui: bring Wish process to front on Mac

2013-06-06 Thread Stefan Haller
of the startup sequence are actually seen by the user. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- git-gui.sh | 13 + 1 file changed, 13 insertions(+) diff --git a/git-gui.sh b/git-gui.sh index e11..c464928 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -29,6 +29,19

Re: [PATCH] git-gui: bring Wish process to front on Mac

2013-06-06 Thread Stefan Haller
Pat Thoyts pattho...@gmail.com wrote: On 6 June 2013 09:17, Stefan Haller ste...@haller-berlin.de wrote: +## On Mac, bring the current Wish process window to front + +if {[tk windowingsystem] eq aqua} { + exec osascript -e [format { + tell application System Events

Re: [PATCH] gitk: workaround Tcl/Tk Cmd-TAB behavior on OSX

2013-04-23 Thread Stefan Haller
, Stefan -- Stefan Haller Berlin, Germany http://www.haller-berlin.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: Bug in latest gitk - can't click lines connecting commits

2013-01-01 Thread Stefan Haller
at git://ozlabs.org/~paulus/gitk.git it's not there. Paul? -- Stefan Haller Berlin, Germany http://www.haller-berlin.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

Re: [PATCH] gitk: read and write a repository specific configuration file

2012-12-03 Thread Stefan Haller
the window size. I don't have good suggestions how to solve this; just pointing out problems. -- Stefan Haller Berlin, Germany http://www.haller-berlin.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

Re: [PATCH] gitk: Do not select file list entries during diff loading

2012-10-29 Thread Stefan Haller
] || $topidx ne $suppress_highlighting_file_for_this_scrollpos} { highlightfile_for_scrollpos $topidx } set ctext_last_scroll_pos $topidx } -Stefan -- Stefan Haller Berlin, Germany http://www.haller-berlin.de/ -- To unsubscribe from this list: send the line

Re: [BUG] gitk: clicking on a connecting line produces can't read cflist_top

2012-10-04 Thread Stefan Haller
Sorry, I didn't realize that there is a display mode where the list of files is empty, not even showing a Comments entry. Here's a patch that fixes it, plus another patch that is only related in so far as the bug that it fixes was introduced by the same commit. [PATCH 1/2] gitk: Fix error

[PATCH 1/2] gitk: Fix error message when clicking on a connecting line

2012-10-04 Thread Stefan Haller
When clicking on the line that connects two commit nodes, gitk would bring up an error dialog saying can't read cflist_top: no such variable. This fixes a regression that was introduced with b967135 (gitk: Synchronize highlighting in file view when scrolling diff). Signed-off-by: Stefan Haller

[PATCH 2/2] gitk: When searching, only highlight files when in Patch mode

2012-10-04 Thread Stefan Haller
This fixes another regression that was introduced in b967135 (gitk: Synchronize highlighting in file view when scrolling diff): when searching for a string in tree mode, jumping to the next search hit would highlight the Comments entry in the file list. Signed-off-by: Stefan Haller ste...@haller

Re: [PATCH v3] gitk: Synchronize highlighting in file view when scrolling diff

2012-09-23 Thread Stefan Haller
Paul Mackerras pau...@samba.org wrote: On Wed, Sep 19, 2012 at 08:17:27PM +0200, Stefan Haller wrote: Here's one way how to address your concern. When pressing the search button it will highlight the file that contains the current search hit; if you then scroll from there though

[PATCH 2/2] gitk: Highlight first search result immediately on incremental search

2012-09-22 Thread Stefan Haller
When typing in the Search field, select the current search result (so that it gets highlighted in orange). This makes it easier to understand what will happen if you then type Ctrl-S. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- gitk | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 0/2] gitk: Better highlighting of search results

2012-09-22 Thread Stefan Haller
Here's something that has been bugging me for a long time: when using the incremental search feature, it's hard to tell what happens when clicking the Search button (or type Ctrl-S) repeatedly. It does have the concept of a current search hit, and Ctrl-S advances to the next one; however, you

[PATCH] gitk: Work around empty back and forward images when buttons are disabled

2012-09-22 Thread Stefan Haller
-nW1JBq0eU. To work around this, we explicitly provide gray images for the disabled state; I think this looks better than the default stipple effect that you get on Windows as well, but that may be a matter of taste. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- gitk | 17

[PATCH v2] gitk: Synchronize highlighting in file view when scrolling diff

2012-09-19 Thread Stefan Haller
they have to do is scroll the diff pane. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- The only change from v1 is the addition of the $difffilestart eq {} condition, this should fix the flickering problem reported by Peter. I didn't do anything about the search problem yet, will look

[PATCH] gitk: Synchronize highlighting in file view when scrolling diff

2012-09-18 Thread Stefan Haller
they have to do is scroll the diff pane. Signed-off-by: Stefan Haller ste...@haller-berlin.de --- gitk | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/gitk b/gitk index d93bd99..9e3ec71 100755 --- a/gitk +++ b/gitk @@ -7947,10 +7947,9 @@ proc

Re: Feature request: fetch --prune by default

2012-07-19 Thread Stefan Haller
not introduce such options. I would use it. -- Stefan Haller Berlin, Germany http://www.haller-berlin.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