| From | Subject | Date |
|---|---|---|
| Shawn O. Pearce | [JGIT PATCH] Make the Eclipse plugin resource locking mo ...
From: Rob Clevenger <r...@google.com>
Using the default rule factory instead of the pessimistic one
makes it less likely that the UI will freeze in a modal dialog
while Eclipse goes off and does builds.
Signed-off-by: Rob Clevenger <r...@google.com>
Signed-off-by: Shawn O. Pearce <sop@google.com>
---
.../src/org/spearce/egit/core/GitProvider.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git ...
| Feb 11, 4:35 pm 2009 |
| Dévai Tamás | [PATCH] git-svn: Fix for rewriteRoot URL containing username.
If the new svn root URL given with the svn-remote.<repo>.rewriteRoot config option
(or by the --rewrite-root option to 'git svn init') contains a username
(such as 'svn+ssh://username@example.com/repo'), find_by_url() cannot find
the repository URL, because the URL contained in the commit message does have
the username removed.
Signed-off-by: Dévai Tamás <devait@mailbox.sk>
---
git-svn.perl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl ...
| Feb 11, 4:14 pm 2009 |
| Shawn O. Pearce | [JGIT PATCH] Add --export-all to jgit daemon
Sometimes its useful to export an entire directory tree,
without needing to create git-daemon-export-ok everywhere.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
.../src/org/spearce/jgit/pgm/Daemon.java | 4 ++
.../src/org/spearce/jgit/transport/Daemon.java | 37 +++++++++++++++++++-
2 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/Daemon.java ...
| Feb 11, 3:59 pm 2009 |
| Junio C Hamano | Re: [PATCH] stash: --keep option just saves
I saw --no-reset mentioned earlier but probably this is a more consistent
name for the feature.
But I somewhat doubt if this line of change is a good idea to begin with.
The earlier --keep-index feature had a clear definition of what workflow
benefits from it, and also made it clear that the workflow it helped was a
good workflow. You build what you would consider a good change in the
index bit by bit, but you would want a final test of the whole tree,
without the changes that you are ...
| Feb 11, 3:10 pm 2009 |
| Nanako Shiraishi | [PATCH] stash: --keep option just saves
The "save" subcommand usually removes the changes it stashed from the
index and the work tree. Existing --keep-index option however keeps the
changes to the index. This new option keeps the changes made to both the
index and the work tree.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
Documentation/git-stash.txt | 7 +++++--
git-stash.sh | 35 +++++++++++++++++++++++++++++------
t/t3903-stash.sh | 22 ++++++++++++++++++++++
3 files changed, 56 ...
| Feb 11, 2:25 pm 2009 |
| Junio C Hamano | Re: [RFC/PATCH] shortstatus v1
There can be renames between the HEAD and the index, but by definition
there can never be renames between the index and the work tree, because
we do not use untracked files in the work tree for comparison, which means
there is no "new" files when comparing the index and the work tree.
For this reason, there is need for similarity indices for the second one.
--
| Feb 11, 2:24 pm 2009 |
| Junio C Hamano | Re: How to use path limiting (using a glob)?
There was a recent discussion on this. The index family uses glob, the
tree family uses leading-path only. The one implemented for grep can do
both, and attempts to unify both by providing possibly reusable interface
so that the other two families can be ported to, but we haven't managed to
trick anybody to take up the task ;-).
--
| Feb 11, 12:48 pm 2009 |
| Linus Torvalds | Re: How to use path limiting (using a glob)?
Not really. Git has two different kinds of path limiters, and they are
really really different.
- the "walk current index/directory recursively" kind that "git ls-files"
uses, which takes a 'fnmatch()' type path regexp (not a real regexp,
but the kind you're used to with shell)
NOTE! On purpose, we don't set the FNM_PATHNAME, so "*.c" here is
different from *.c in shell (it's more like "**.c" in tcsh). IOW, *
matches '/' too, and will walk subdirectories.
- the ...
| Feb 11, 12:40 pm 2009 |
| Peter Baumann | How to use path limiting (using a glob)?
Hallo,
after reading Junio's nice blog today where he explained how to use git grep
efficiently, I saw him using a glob to match for the interesting files:
$ git grep -e ';;' -- '*.c'
Is it possible to have the same feature in git diff and the revision
machinery? Because I tried
$ cd $path_to_your_git_src_dir
$ git log master -p -- '*.h'
.... No commit shown
$ git diff --name-only v1.5.0 v1.6.0 -- '*.c'
and both don't return anything.
Grettings,
Peter Baumann
--
| Feb 11, 12:14 pm 2009 |
| Nanako Shiraishi | Re: How to use path limiting (using a glob)?
The list archive has nicely written summaries on the issues and suggestions on how to make this possible:
http://article.gmane.org/gmane.comp.version-control.git/94628
http://thread.gmane.org/gmane.comp.version-control.git/105638/focus=105679
--
Nanako Shiraishi, the unofficial project secratary of the git project
http://ivory.ap.teacup.com/nanako3/
--
| Feb 11, 2:09 pm 2009 |
| Luciano Miguel Ferre ... | [PATCH 1/1] git-instaweb: support for apache2/lighttpd b ...
Some distributions include the Apache httpd server as just "httpd", but
specifying the option --httpd=httpd doesn't work, as git-instaweb uses
the program name to detect the type of server used.
Now the output if $httpd -v is used to also detect the server type.
Remove also the hard-coded path to apache2 modules, use apache2's
compilation options.
Signed-off-by: Luciano M. F. Rocha <luciano@eurotux.com>
---
git-instaweb.sh | 137 +++++++++++++++++++++++++++++++-----------------------
1 ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 11/12] Expose the underlying resource ent ...
This is needed if interacting with any of the Eclipse platform
methods that take IResources as arguments.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../spearce/egit/core/ContainerTreeIterator.java | 23 +++++++++++++++++++-
.../src/org/spearce/jgit/treewalk/TreeWalk.java | 9 +++++++
2 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/ContainerTreeIterator.java ...
| Feb 11, 11:40 am 2009 |
| Robin Rosenberg | Re: [EGIT PATCH v2 08/12] Add icon decoration for tracke ...
This one fails to compile,
Description Resource Path Location Type
fPreview cannot be resolved GitDecoratorPreferencePage.java org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences line 279 Java Problem
With patch 9 things build again, but swapping the patches does not help.
Every patch should build and pass unit tests so we can perform bisect over the patches.
-- robin
--
| Feb 11, 3:16 pm 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 04/12] Add new class ExceptionCollector f ...
Copied from org.eclipse.team.internal.core
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
org.spearce.egit.core/META-INF/MANIFEST.MF | 5 +-
.../core/internal/util/ExceptionCollector.java | 128 ++++++++++++++++++++
2 files changed, 131 insertions(+), 2 deletions(-)
create mode 100644 org.spearce.egit.core/src/org/spearce/egit/core/internal/util/ExceptionCollector.java
diff --git a/org.spearce.egit.core/META-INF/MANIFEST.MF ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 10/12] Don't decorate every single resour ...
Not all resources have corresponding labels that are visible,
so by using LabelProviderChangedEvent() we ensure that only
the visible labels are refreshed.
The downside is that we lose project precition, so all
projects are included, but only visible labels in those
projects are re-decorated, so it is OK for now.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../decorators/GitLightweightDecorator.java | 28 +++-----------------
1 files changed, 4 insertions(+), 24 ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 02/12] Use Set instead of array to keep t ...
Also, add method for removing listeners.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../spearce/egit/core/project/GitProjectData.java | 40 ++++++++++++-------
1 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java b/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java
index db5f20b..b12a85f 100644
--- ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 12/12] Implement label decorations for fo ...
The option "Re-decorate ancestors..." controls if parents of a
re-decorated resource also should be updated, for example to
to signal that the containing folder is now concidered dirty.
The option "Maximum number of levels..." controls how deep the
container decoration algorithm will recurse when trying to
determine the state (dirty, staged, etc.) of a container.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../egit/ui/PluginPreferenceInitializer.java | 4 +-
...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 06/12] Implement basic customizable label ...
Currently the only binding available is the resource name, but
this commit enables a framework for adding more bindings.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
org.spearce.egit.ui/plugin.properties | 1 +
org.spearce.egit.ui/plugin.xml | 12 +-
.../src/org/spearce/egit/ui/Activator.java | 16 +
.../egit/ui/PluginPreferenceInitializer.java | 8 +
.../src/org/spearce/egit/ui/UIPreferences.java | 9 +
...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 05/12] Add new class SWTUtils with helper ...
Copied verbatim from org.eclipse.team.internal.ui and documented
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../src/org/spearce/egit/ui/internal/SWTUtils.java | 595 ++++++++++++++++++++
1 files changed, 595 insertions(+), 0 deletions(-)
create mode 100644 org.spearce.egit.ui/src/org/spearce/egit/ui/internal/SWTUtils.java
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/SWTUtils.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/SWTUtils.java
new file ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 07/12] Add binding for name of the curren ...
This is an example of how to add more bindings to the
decoration preferences, and how they are implemented in
the decorator.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../src/org/spearce/egit/ui/UIText.java | 3 ++
.../decorators/GitLightweightDecorator.java | 26 ++++++++++++++++---
.../internal/decorators/IDecoratableResource.java | 8 ++++++
.../preferences/GitDecoratorPreferencePage.java | 21 +++++++++++----
...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 09/12] Implement icon and text decoration ...
- Dirty
- Staged
- Conflict
- Assume valid
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
org.spearce.egit.ui/icons/ovr/assume_valid.gif | Bin 0 -> 85 bytes
org.spearce.egit.ui/icons/ovr/assumevalid.gif | Bin 64 -> 0 bytes
org.spearce.egit.ui/icons/ovr/conflict.gif | Bin 64 -> 194 bytes
org.spearce.egit.ui/icons/ovr/pending_add.gif | Bin 64 -> 0 bytes
org.spearce.egit.ui/icons/ovr/pending_remove.gif | Bin 111 -> 0 bytes
...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH 08/12 v3] Add icon decoration for tracked an ...
Can be enabled/disabled in the preferences
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
Sorry, got a little trigger happy with the rebasing and messed up a merge :/
org.spearce.egit.ui/icons/ovr/shared.gif | Bin 106 -> 0 bytes
org.spearce.egit.ui/icons/ovr/untracked.gif | Bin 0 -> 79 bytes
.../egit/ui/PluginPreferenceInitializer.java | 4 +-
.../src/org/spearce/egit/ui/UIIcons.java | 6 +-
.../src/org/spearce/egit/ui/UIPreferences.java ...
| Feb 11, 3:46 pm 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 03/12] Add a specialized team exception for Git
Copied largly from org.eclipse.team.internal.ccvs.core (CVS) and
org.tigris.subversion.subclipse.core (SVN), and then cleaned up.
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../src/org/spearce/egit/core/GitException.java | 168 ++++++++++++++++++++
1 files changed, 168 insertions(+), 0 deletions(-)
create mode 100644 org.spearce.egit.core/src/org/spearce/egit/core/GitException.java
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/GitException.java ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 01/12] Add support code to handle plugin ...
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../src/org/spearce/egit/ui/Activator.java | 52 ++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java
index fced643..534c408 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java
@@ -10,9 +10,11 ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 00/12] Support customizable label decorations
This series adds support for customizable label decorations, which
is usefull for hiding selected decorations, or tweaking the format
of the decoration text.
Changes in v2:
- Fixed layout issues in preference dialog
- Icons replaced to match established conventions
- 'Assume unchanged' icon is back
- Added tooltips in the preference dialog
- 'Added and dirty' is now decorated appropriately
- Refactored container decorations. Now shares code path with
files for more accurate ...
| Feb 11, 11:40 am 2009 |
| Tor Arne Vestbø | [EGIT PATCH v2 08/12] Add icon decoration for tracked an ...
Can be enabled/disabled in the preferences
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
org.spearce.egit.ui/icons/ovr/shared.gif | Bin 106 -> 0 bytes
org.spearce.egit.ui/icons/ovr/untracked.gif | Bin 0 -> 79 bytes
.../egit/ui/PluginPreferenceInitializer.java | 4 +-
.../src/org/spearce/egit/ui/UIIcons.java | 6 +-
.../src/org/spearce/egit/ui/UIPreferences.java | 4 +
.../src/org/spearce/egit/ui/UIText.java | 6 +
...
| Feb 11, 11:40 am 2009 |
| Junio C Hamano | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
If that is the only gripe and otherwise if you are Ok with the patch, I'll
queue the entire series with a fix-up here myself.
--
| Feb 11, 11:26 am 2009 |
| Ted Pavlic | [PATCH 4/4] completion: More fixes to prevent unbound va ...
Several functions make use of "[-n ...]" and "[-z ...]". In many cases,
the variables being tested were declared with "local." However, several
__variables are not, and so they must be replaced with their ${__-}
equivalents.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
contrib/completion/git-completion.bash | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ...
| Feb 11, 11:03 am 2009 |
| Ted Pavlic | [PATCH 1/4] completion: For consistency, changed "git re ...
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
---
contrib/completion/git-completion.bash | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f44f63c..6bbe09a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -80,7 +80,7 @@ __gitdir ()
# returns text to add to bash PS1 prompt (includes ...
| Feb 11, 11:54 am 2009 |
| Jeff King | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
FWIW, I do this in my .vimrc:
au BufNewFile,BufRead /path/to/git/repo/* set noet sts=8 sw=8 ts=8
-Peff
--
| Feb 11, 3:25 pm 2009 |
| Ted Pavlic | [PATCH 1/4] completion: For consistency, changed "git re ...
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
---
contrib/completion/git-completion.bash | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f44f63c..6bbe09a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -80,7 +80,7 @@ __gitdir ()
# returns text to add to bash PS1 prompt (includes ...
| Feb 11, 11:03 am 2009 |
| Ted Pavlic | [PATCH 0/4] completion fixes: Acks, whitespace, and r=""
* Added Shawn O. Pearce acks
* Fixed whitespace problem in second patch (vim:expandtabs was on)
* When in GIT_DIR, set r="" in __git_ps1 as well
Ted Pavlic (4):
completion: For consistency, changed "git rev-parse" to __gitdir
calls.
completion: Use consistent if [...] convention. No test.
completion: Better __git_ps1 support when not in working directory
completion: More fixes to prevent unbound variable errors.
contrib/completion/git-completion.bash | 76 ...
| Feb 11, 11:54 am 2009 |
| Shawn O. Pearce | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
Yes, this patch is fine, if you can hand-fix the whitespace damage,
please feel free to add my Ack.
--
Shawn.
--
| Feb 11, 11:35 am 2009 |
| Ted Pavlic | [PATCH 0/4] completion: Fixes and better non-work-tree support
The first patch has already been Acked by spearce.
The second patch uses a consistent "if..." convention throughout the
completion script.
The third patch improves how the __git_ps1 works when (a) the CWD is a
git dir and (b) when the CWD has a .git but no .git/HEAD.
The fourth patch fixes unbound variable errors by replacing $__vars with
${__var-}s.
Ted Pavlic (4):
completion: For consistency, changed "git rev-parse" to __gitdir
calls.
completion: Use consistent if [...] ...
| Feb 11, 11:03 am 2009 |
| Ted Pavlic | [PATCH 3/4] completion: Better __git_ps1 support when no ...
[Empty message]
| Feb 11, 11:54 am 2009 |
| Ted Pavlic | [PATCH 2/4] completion: Use consistent if [...] conventi ...
The local coding convention in bash completion is to use [...] rather
than test. Additionally,
if [...]; then
is preferred over
if [...]
then
and so matching "if [...]\nthen" were changed accordingly.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
contrib/completion/git-completion.bash | 31 +++++++++++--------------------
1 files changed, 11 insertions(+), 20 deletions(-)
diff --git a/contrib/completion/git-completion.bash ...
| Feb 11, 11:03 am 2009 |
| Ted Pavlic | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
> What's with this funny indentation?
In Vim, I have "exapndtabs" set by default. I manually turned it off,
but during testing, I must have closed Vim and re-opened and forgot to
turn it back off.
Some time ago, I suggested adding a vim modeline to the file to handle
turning expandtabs off for everyone who edits it with vim. That change
got denied.
If you'd like, I can clean up the whitespace and resubmit with Shawn's Acks.
--Ted
--
Ted Pavlic <ted@tedpavlic.com>
Please ...
| Feb 11, 11:43 am 2009 |
| Shawn O. Pearce | Feb 11, 11:09 am 2009 | |
| Ted Pavlic | [PATCH 2/4] completion: Use consistent if [...] conventi ...
The local coding convention in bash completion is to use [...] rather
than test. Additionally,
if [...]; then
is preferred over
if [...]
then
and so matching "if [...]\nthen" were changed accordingly.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
---
contrib/completion/git-completion.bash | 31 +++++++++++--------------------
1 files changed, 11 insertions(+), 20 deletions(-)
diff --git ...
| Feb 11, 11:54 am 2009 |
| Shawn O. Pearce | Feb 11, 11:09 am 2009 | |
| Ted Pavlic | [PATCH 3/4] completion: Better __git_ps1 support when no ...
If .git/HEAD is not readable, __git_ps1 does nothing.
If --is-in-git-dir, __git_ps1 returns " (GIT_DIR!)" as a cautionary
note. The previous behavior would show the branch name (and would
optionally attempt to determine the dirtyState of the directory, which
was impossible because a "git diff" was used).
If --is-in-work-tree, __git_ps1 returns the branch name. Additionally,
if showDirtyState is on, the dirty state is displayed.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
...
| Feb 11, 11:03 am 2009 |
| Ted Pavlic | [PATCH 4/4] completion: More fixes to prevent unbound va ...
Several functions make use of "[-n ...]" and "[-z ...]". In many cases,
the variables being tested were declared with "local." However, several
__variables are not, and so they must be replaced with their ${__-}
equivalents.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
---
contrib/completion/git-completion.bash | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/completion/git-completion.bash ...
| Feb 11, 11:54 am 2009 |
| Junio C Hamano | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
What's with this funny indentation?
As a general rule, it usually is a good idea to apply clean-up to the
codebase before starting substantial work, but that holds true only when
the clean-up is undisputed. Otherwise you would end up holding the later,
more "interesting" work a hostage to an earlier potentially controversial
"clean-up".
I think this particular clean-up makes the odd-ball __git_ps1 more
consnstent with the rest of the script, but it ultimately is Shawn's
call.
--
| Feb 11, 11:14 am 2009 |
| Shawn O. Pearce | Re: [PATCH 2/4] completion: Use consistent if [...] conv ...
There is some sort of whitespace damage right here, the elif doesn't
seem to line up correctly.
--
Shawn.
--
| Feb 11, 11:07 am 2009 |
| Jeff King | Re: Git push failure in the case of SSH to localhost
I can't reproduce the problem here. It looks like your receive-pack is
somehow broken (which should be the only difference between pushing to a
local repo and a remote one).
Can you try with a vanilla version of git to be sure it is not your
add-on patch responsible?
-Peff
--
| Feb 11, 11:05 am 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
:) Yes I know about the alias trick...
But I find it easier to just create a bin folder and drop my
scripts there... (For example git-branch-import that takes a new
branch name and an URL and creates the branch with no ancestry and
knows http, ftp, svn, tar.{gz,bz2}, zip, etc...)
Ciprian.
--
| Feb 11, 12:20 pm 2009 |
| Junio C Hamano | Re: Git push failure in the case of SSH to localhost
Define "moving the repository". More often than not, people move their
repositories with "git clone" than "tar cf - | tar xf -".
No matter how you are moving it to a new location, you would want to have
a working set of "regular environment" you normally work in. Why aren't
you moving/copying your $HOME/bin at the same time to get a more familiar
and useful environment? Viewed under this light, I think your "I move my
repository to a new machine" is a made up example that is not ...
| Feb 11, 1:23 pm 2009 |
| Jeff King | Re: Git push failure in the case of SSH to localhost
I don't see what is per-repo about that. That is, why not put it in a
PATH directory accessible by all repos. And if there is some
repo-specific data, you can have the script read it from the current
repo by "git config".
-Peff
--
| Feb 11, 12:22 pm 2009 |
| Ciprian Dorin, Craciun | Git push failure in the case of SSH to localhost
Hello all!
I've encountered the following error situations: git fails to push
a branch over ssh to localhost, even with file: protocol it has the
same behaviour... Please see the transcript... (Git version is
1.6.1.1) I don't think I'm doing something wrong, because this works
just fine with a real remote host...
Thanks,
Ciprian Craciun.
P.S.: I'm using a slightly modified version of Git, but this patch
affects only the PATH-like search mechanism for git ...
| Feb 11, 9:24 am 2009 |
| Shawn O. Pearce | Re: Git push failure in the case of SSH to localhost
for f in `cd $(git rev-parse --git-dir)/bin && ls *`; do
git config alias.$f '!$(git rev-parse --git-dir)/bin/'$f
done
No need to patch git.
--
Shawn.
--
| Feb 11, 12:14 pm 2009 |
| Junio C Hamano | Re: Git push failure in the case of SSH to localhost
You are not answering my question.
I questioned the sanity of putting the scripts in .git/bin/ per
repository. Why shouldn't a useful script like your "branch-import"
available to _all_ your repositories, possibly taking customization per
repository from repository's .git/config file, so that it does what is
appropriate in each repository?
--
| Feb 11, 12:40 pm 2009 |
| Jeff King | Re: Git push failure in the case of SSH to localhost
I think you probably end up calling setup_git_directory_gently twice,
which is known to have weird interactions.
-Peff
--
| Feb 11, 11:44 am 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
Indeed it gets called twice...
Here is what I'm trying to accomplish: I want to add to the git
search path also the folder ${GIT_DIR}/bin if this already exists...
(This allows me to have repository specific commands...)
So in order to obtain GIT_DIR (get_git_dir function), I have to
call setup_git_directory_gently...
Is there another way to obtain the right GIT_DIR?
Ciprian.
--
| Feb 11, 12:03 pm 2009 |
| Jeff King | Re: Git push failure in the case of SSH to localhost
It's not _wrong_, we're just suggesting ways that the same thing might
Yes, I think your patch is running into a long-standing problem in the
git initialization code. There are problems if you need to look into the
repo dir to find out which command to execute, because finding the repo
dir changes the environment. There is a similar problem with aliases.
So I think getting your patch to run correctly may be hard. But I admit
I didn't look at it that closely.
-Peff
--
| Feb 11, 12:42 pm 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
Indeed it seems it's from my patch... Because with a vanila
1.6.1.1 it works perfectly... I'll dig into what I've done, although I
couldn't imagine that it was from my patch...
For now I see that the problem comes from the function
setup_git_directory_gentry which I call inside the setup_path function
in exec_cmd.c
Can someone help? (My patch is below...)
Thanks,
Ciprian Craciun.
--------
diff --git a/exec_cmd.c b/exec_cmd.c
index cdd35f9..1513ee0 100644
--- ...
| Feb 11, 11:42 am 2009 |
| Junio C Hamano | Re: Git push failure in the case of SSH to localhost
And why isn't it in $HOME/bin/?
--
| Feb 11, 12:27 pm 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
Well, it is per-repo because I've left out to tell you that the
git-branch-import command I use to track non-git source code
distributions for other projects... And my command constructs the
branch name in a certain way...
Anyway, I don't see why it's wrong to have such a bin folder per
repository... Let's for a moment assume that there is a use case for
such a thing, I'm wondering what is wrong with this solution from a
Git perspective???
Ciprian.
P.S.: It seems that ...
| Feb 11, 12:32 pm 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
No, it is inside .git/bin folder. I like to think to my bin folder
like the hooks folder... This way when I move a repository I move the
hooks and the specific commands.
Ciprian.
--
| Feb 11, 12:34 pm 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
By moving the repository I mean moving it on another machine...
Let me give you an example...
Thus (inspired by one of my current usages of Git) suppose I'm
working at a scientific project (let's assume algorithmic nature) and
after I succeed in having a working version of my algorithm, I decide
to test it on a better hardware with bigger workloads... For this I
make a tar of my repository, and un-tar it on the remote machine. (On
this remote machine, as I don't have administrative ...
| Feb 11, 1:49 pm 2009 |
| Johannes Schindelin | Re: Git push failure in the case of SSH to localhost
Hi,
Already you showed that your workflow leaves to be desired. You need to
move the repository using filesystem commands now. Why? Because you have
stuff in .git/ that does not belong there, and does not get pushed or
fetched as a consequence.
In similar cases, I followed three different options (and yes, I use all
of them, in different repositories):
- commit the scripts (that works amazingly well with Git :-)
- have an independent branch for the scripts that I check out in a ...
| Feb 11, 2:03 pm 2009 |
| Ciprian Dorin, Craciun | Re: Git push failure in the case of SSH to localhost
I'll merge both Junio's and Jeff's emails into one... My answers bellow.
Indeed my problem could be solved by either of the solutions
proposed (I'll summarize them for the sake of completeness):
* using git alias to put simple inline scripts (without need of a
new file), or to put the path to the real script;
* putting the new command into a directory that is referenced from PATH;
Both these solutions work fine, except one concern: when moving
the repository I would ...
| Feb 11, 1:03 pm 2009 |
| Sitaram Chamarty | showing SHA1 of parent commit in tig [was Re: [ANNOUNCE] ...
Is there any way to see the sha1 of the parent commit in any
of the displays, like gitk does?
I know you're only parsing the 4 or 5 basic git commands,
and none of those do, so I guess I know the answer :-( but
it doesn't hurt to ask.
--
| Feb 11, 9:05 am 2009 |
| Yann Simon | [PATCH JGIT] Add "compare with index" action.
In the Compare With... menu, the "compare with index" action opens
a diff editor that compares the workspace version of a file and its
index version.
Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
---
My plan with the compare editor is to allow to add some contents into
the index (partial commits).
I do not know yet how to achieve this.
I did not find how to commit only the index with the eclipse interface.
So I guess comparing with index does not bring a lot of value for ...
| Feb 11, 8:44 am 2009 |
| Ted Pavlic | [PATCH 1/3] completion: For consistency, changed "git re ...
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
contrib/completion/git-completion.bash | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f44f63c..6bbe09a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -80,7 +80,7 @@ __gitdir ()
# returns text to add to bash PS1 prompt (includes branch name)
__git_ps1 ()
{
- local g="$(git ...
| Feb 11, 8:37 am 2009 |
| Ted Pavlic | Re: [PATCH 2/3] completion: Change "if [...]" to "if tes ...
So this trumps Documentation/CodingGuidelines, which says:
- We prefer "test" over "[ ... ]".
?
Thanks --
Ted
--
Ted Pavlic <ted@tedpavlic.com>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to defeat ALS.
--
| Feb 11, 9:36 am 2009 |
| Shawn O. Pearce | Re: [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE ...
I think it makes more sense to just drop the work tree stuff from
the prompt if we aren't inside the work tree anymore. Meaning,
--
Shawn.
--
| Feb 11, 9:26 am 2009 |
| Ted Pavlic | Re: [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE ...
I see.
At first, it seemed like it would be useful to know if the working
directory was dirty even when you're within .git. However, I guess
that's problematic when your working tree is in some completely
unpredictable location. It's probably a bad idea to assume that work-tree=..
So you're right... there's a logical problem with having showDirtyState
turned on when within .git. It should be disabled there.
So I'll check for "git rev-parse --is-inside-git-dir" and disable ...
| Feb 11, 9:53 am 2009 |
| Shawn O. Pearce | Re: [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE ...
Yes, that looks right to me.
--
Shawn.
--
| Feb 11, 11:01 am 2009 |
| Shawn O. Pearce | Re: [PATCH 2/3] completion: Change "if [...]" to "if tes ...
NAK.
This script only runs in bash. bash supports [...]. The
prevailing convention in the script is to use [...]. Only
4 tests inside of __git_ps1 use "test", the rest of the code
is using [...].
I would agree to a test->[...] conversion patch as its fairly small,
but not this one. Too large, too much code churn, no benefit.
--
Shawn.
--
| Feb 11, 9:24 am 2009 |
| Junio C Hamano | Re: [PATCH 2/3] completion: Change "if [...]" to "if tes ...
In [0/3] you talked about "git convention", but please match the local
convention, especially inside contrib/ area. That is, consistency of the
The prevailing style in bash completion script is to write "then" on the
same line as "if", so I think this is a good example of matching the local
convention (if you are trying to match "git convention", "then" is written
on the same column as "if" on a line by itself for readability, so this
change is going backwards).
--
| Feb 11, 9:46 am 2009 |
| Junio C Hamano | Re: [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE ...
Why ".."? What prevents you from "cd .git/refs/heads"?
Your "is-inside-work-tree" might be a good change, but if you were to
spend a letter to notify the users, "Warning: You are inside GIT_DIR! This
is something unusual, proceed with caution." is a lot more important
notice to give them than "You seem to have unstaged changes" notice.
You have at least three possible states:
* You are not in git repository at all;
* You are somewhere in $GIT_DIR, perhaps in a bare repository, ...
| Feb 11, 9:56 am 2009 |
| Junio C Hamano | Re: [PATCH 2/3] completion: Change "if [...]" to "if tes ...
No, this paragraph from Documentation/CodingGuidelines trumps you.
As for more concrete guidelines, just imitate the existing code
(this is a good guideline, no matter which project you are
contributing to). It is always preferable to match the _local_
convention. New code added to git suite is expected to match
the overall style of existing code. Modifications to existing
code is expected to match the style the surrounding code already
uses (even if it doesn't ...
| Feb 11, 10:14 am 2009 |
| Ted Pavlic | [PATCH 2/3] completion: Change "if [...]" to "if test .. ...
In the single case of:
if [...] || [...]
changed to:
if test ... || test ...
However,
if test ... -o ...
might be favorable (although arguably less readable).
Also changed:
if test ...
then
to:
if test ...; then
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
contrib/completion/git-completion.bash | 91 ++++++++++++++-----------------
1 files changed, 41 insertions(+), 50 deletions(-)
diff --git a/contrib/completion/git-completion.bash ...
| Feb 11, 8:37 am 2009 |
| Ted Pavlic | [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE from ...
The GIT_PS1_DIRTYSTATE support uses a "git diff" to see if a "*" should
be placed after the branch name. The "git diff" fails with an ugly error
if the user has just changed directory into GIT_DIR.
This patch uses "git rev-parse --is-inside-work-tree" to determine
whether a "--work-tree=.." should be added to the "git diff".
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
contrib/completion/git-completion.bash | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git ...
| Feb 11, 8:37 am 2009 |
| Ted Pavlic | [PATCH 4/3] completion: More fixes to prevent unbound va ...
Several functions make use of "test -n" and "test -z". In many cases,
the variables being tested were declared with "local." However, several
__variables are not, and so they must be replaced with their ${__-}
equivalents.
Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
---
This patch depends on:
<1234366634-17900-3-git-send-email-ted@tedpavlic.com>
"[PATCH 2/3] completion: Change "if [...]" to "if test ..." to
match git convention"
If that patch is ...
| Feb 11, 9:18 am 2009 |
| Shawn O. Pearce | Feb 11, 9:22 am 2009 | |
| Shawn O. Pearce | Re: [PATCH 4/3] completion: More fixes to prevent unboun ...
Looks OK to me, but I NAK'd the dependency, so you'll have to rebase
it without the dependency in there. Or talk me into why that much
--
Shawn.
--
| Feb 11, 9:28 am 2009 |
| Ted Pavlic | Re: [PATCH 3/3] completion: Prevents GIT_PS1_DIRTYSTATE ...
It was my impression that --work-tree=.. was relative to the GIT_DIR. My
tests seem to confirm that. Within the git work tree I do:
echo "test">>COPYING
then
cd .git/refs/heads
git --work=tree=.. diff
and that produces a diff of COPYING showing the new line.
Ok, so if "is-inside-git-dir" then send a special "!" flag (and no
dirtyState flags)? Does that seem reasonable?
Additionally, is it a good idea to echo the branch name when inside the
git dir? That is, what does it ...
| Feb 11, 10:20 am 2009 |
| Ted Pavlic | [PATCH 0/3] completion: Convention updates and DIRTYSTATE fix
Three more patches to git's bash completion script.
The first two are non-critical:
* The first patch changes two "git rev-parse" calls to "__gitdir" to
match the convention used in the rest of the script.
* The second patch changes "[...]" to "test ..." to match git
convention. In the one case of "[...] || [...]", a "test || test" call
is used. Alternatively, a "test ... -o ..." call could be used, but
that might not be as readable.
The third fixes an ugly error in the new ...
| Feb 11, 8:37 am 2009 |
| Eric Kidd | Re: [PATCHv3] filter-branch: Add more error-handling
On Wed, Feb 11, 2009 at 3:48 PM, Johannes Schindelin
The working directory actually lives one level down:
tempdir=.git-rewrite
workdir="$tempdir/t"
At the end of the script, git-filter-branch cleans up all of its
temporary files by deleting $tempdir. There's actually a fair bit of
Will fix. Thank you.
I really appreciate all this feedback from the git team. Thank you for
taking the time to help me get this right!
Cheers,
Eric
--
| Feb 11, 2:00 pm 2009 |
| Eric Kidd | Re: [PATCH v2] filter-branch: Add more error-handling
If a custom $filter_commit calls 'exit', there won't be an error
message from git. Of course, there may be an error message from the
custom $filter_commit, but I decided not to rely on that. Would you
prefer me to remove the error message?
I'll have another patch ready shortly, incorporating your suggestions.
My apologies for giving credit in the wrong part of the commit
message, and thank you for your feedback!
Cheers,
Eric
--
| Feb 11, 12:34 pm 2009 |
| Nanako Shiraishi | Re: [PATCH v2] filter-branch: Add more error-handling
I think you meant this as a sample to follow. Can we add it to Documentation/SubmittingPatches?
--
Nanako Shiraishi, an unofficial project secretary
http://ivory.ap.teacup.com/nanako3/
--
| Feb 11, 2:30 pm 2009 |
| Junio C Hamano | Re: [PATCH v2] filter-branch: Add more error-handling
The commit message is not a reception speech at Emmy Awards. If you want
to do the speech, do so after the three-dash lines.
Please just stick to what problem it tries to solve, how it does so, and
That's a very good start for the description of the solution, which would
Giving credits to others like this with a short sentence at the end is
This goes after three-dashes; people who read "git log" output wouldn't
know nor care what was in v1.
Subject: Fix X under condition Z
...
| Feb 11, 12:03 pm 2009 |
| Junio C Hamano | Re: [PATCH v2] filter-branch: Add more error-handling
I did mean it as such, but I doubt it is good enough to be in in the
document (primarily because I wrote it).
Just quoting the above verbatim does not make it clear that "Thanks for M,
N..." is usually not even wanted, but was merely a suggestion for this
specific case of Eric's commit, iow, _only if he wanted to_. We need more
commentary like that, but with too much details, it would cease to be a
generic recommendation.
Also, the above is not suitable for new features at all as a ...
| Feb 11, 3:28 pm 2009 |
| Eric Kidd | [PATCH] git-filter-branch: Add more error-handling
In commit 9273b56278e64dd47b1a96a705ddf46aeaf6afe3, I fixed an error
that had slipped by the test suites because of a missing check on 'git
read-tree -u -m HEAD'.
I mentioned to Johannes Schindelin that there were several bugs of this
type in git-filter-branch, and he suggested that I send a patch.
I've tested this patch using t/t7003-filter-branch.sh, and it passes all
the existing tests. But it's entirely possible that this patch contains
errors, and I would love input from people who have ...
| Feb 11, 7:09 am 2009 |
| Johannes Sixt | Re: [PATCH] git-filter-branch: Add more error-handling
I take this back. I was distracted by the 'exit $ret' that is visible in
But this exit statement is pointless: ret is initialized to zero and never
changed.
-- Hannes
--
| Feb 11, 8:36 am 2009 |
| Johannes Sixt | Re: [PATCH] git-filter-branch: Add more error-handling
I think it's OK to die if the commit filter fails.
But generally, I think it is not necessary to use 'die with error
message', a plain '|| exit' should be enough because an error will have
Here you shouldn't die. But unlike elsewhere, this case warrants an
explanation for the user:
git read-tree -u -m HEAD ||
-- Hannes
--
| Feb 11, 7:58 am 2009 |
| Eric Kidd | [PATCHv3] filter-branch: Add more error-handling
In commit 9273b56278e64dd47b1a96a705ddf46aeaf6afe3, I fixed an error
that had slipped by the test suites because of a missing check on 'git
read-tree -u -m HEAD'.
This patch attemps to add all the missing error checks to
git-filter-branch, and removes an existing $ret variable that did
nothing. I've tested this patch using t/t7003-filter-branch.sh, and it
passes all the existing tests.
This patch also causes 'git filter-branch' to fail if the --commit-filter
argument returns an error. A ...
| Feb 11, 1:03 pm 2009 |
| Johannes Schindelin | Re: [PATCHv3] filter-branch: Add more error-handling
Hi,
I haven't checked, but is "$tempdir" not the working directory? If so,
this would lead to funny interaction with --tree-filter. Rather, I'd
That's not how it is supposed to be used. Rather,
test_expect_success $LABEL '
test_must_fail git filter-branc $OPTIONS
'
Thanks,
Dscho
--
| Feb 11, 1:48 pm 2009 |
| Eric Kidd | [PATCH v2] filter-branch: Add more error-handling
In commit 9273b56278e64dd47b1a96a705ddf46aeaf6afe3, I fixed an error
that had slipped by the test suites because of a missing check on 'git
read-tree -u -m HEAD'.
I mentioned to Johannes Schindelin that there were several bugs of this
type in git-filter-branch, and he suggested that I send a patch. I've
tested this patch using t/t7003-filter-branch.sh, and it passes all the
existing tests.
In two places, I've had to break apart pipelines in order to check the
error code for the first stage ...
| Feb 11, 10:15 am 2009 |
| Johannes Schindelin | Re: [PATCH] git-filter-branch: Add more error-handling
Hi,
Thanks. Although it lacks a Sign-off, and part of the commit message is
This will catch errors in the update-index call, but neither in diff-index
nor ls-files.
Otherwise, the patch looks good to me.
Ciao,
Dscho
--
| Feb 11, 8:24 am 2009 |
| Eric Kidd | [PATCHv4] filter-branch: Add more error-handling
In commit 9273b56278e64dd47b1a96a705ddf46aeaf6afe3, I fixed an error
that had slipped by the test suites because of a missing check on 'git
read-tree -u -m HEAD'.
This patch attemps to add all the missing error checks to
git-filter-branch, and removes an existing $ret variable that did
nothing. I've tested this patch using t/t7003-filter-branch.sh, and it
passes all the existing tests.
This patch also causes 'git filter-branch' to fail if the --commit-filter
argument returns an error. A ...
| Feb 11, 2:10 pm 2009 |
| Constantine Plotnikov | Q: description of file name encoding approach used by git
I'm interested if there is some document that specifies the approach
of encoding non-ASCII file names used by the git and related issues.
I'm particularly interested in cross-platform issues, since I'm
writing plugin for cross-platform tool.
My understanding based on previous discussions of the issue is that
GIT saves file names as bytes in the tree objects without specifying
actual encoding used. And there will be problem if different clients
use different system encoding.
The list of ...
| Feb 11, 4:56 am 2009 |
| Jay Soffian | Re: Q: description of file name encoding approach used by git
On Wed, Feb 11, 2009 at 6:56 AM, Constantine Plotnikov
HFS+ can be configured to be case-sensitive, though it is not by
default. However, this is only a problem if the repo contains > 1
filenames that collide in a case-insensitive filesystem, since HFS+ is
case-preserving.
The larger HFS+ problem is that it performs Unicode NFD normalization,
which is unfortunately lossy. There are some good links about the
topic here: https://bugs.launchpad.net/bzr/+bug/172383
j.
--
| Feb 11, 9:08 am 2009 |
| Johannes Sixt | gitk endless loop
This recipe sends gitk into an endless loop. In git.git do:
cd t
# remove chmod a+x A near the end of the file
sed -i 's/chmod/: chmod/' t3400-rebase.sh
sh t3400-rebase.sh --debug
cd trash\ directory.t3400-rebase/
gitk master modechange modechange@{1}
I briefly see the history chart, but the dot that should be modechange@{1}
is missing. One automatically selected commit is shown in the diff section
below. But then the commit list is cleared and gitk goes into an infinite
loop.
Things ...
| Feb 11, 4:26 am 2009 |
| Giuseppe Bilotta | Re: [PATCH] lis3lv02d: support both one- and two-byte sensors
I know, I'm terribly sorry for the spamming I did. Fingers automatically went
for 'git@vger' instead of 'linux-kernel@vger' ... I'm so much more used to
sending patches to this list that it goes on automatically 8-/
I'll try not to repeat the mistake in the future 8-)
--
Giuseppe "Oblomov" Bilotta
--
| Feb 11, 4:22 am 2009 |
| Alex Riesen | Re: [PATCH] Disable filemode rebase tests in t3400-rebas ...
hmm... These seem to work here. I have to use Cygwin. Do you use the
native port?
--
| Feb 11, 3:53 am 2009 |
| Alex Riesen | [PATCH] Disable filemode rebase tests in t3400-rebase.sh ...
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
I'm honestly sorry for my contributions. They seem to be exclusively
in the "make Git work in Windows" area. Depressing.
t/t3400-rebase.sh | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
| Feb 11, 2:51 am 2009 |
| Johannes Sixt | Re: [PATCH] Disable filemode rebase tests in t3400-rebas ...
Very interesting. This test works unmodified here. On the other hand, I
have to skip the entire t4129-apply-samemode.sh.
-- Hannes
--
| Feb 11, 3:09 am 2009 |
| Junio C Hamano | Re: [PATCH] Disable filemode rebase tests in t3400-rebas ...
I wonder if you should be fixing the tests with "update-index --chmod"
instead...
--
| Feb 11, 3:09 am 2009 |
| Alex Riesen | Re: [PATCH] Disable filemode rebase tests in t3400-rebas ...
Well, mostly these should work independent of the filesystem (except
for the cases when the index is checked out later). They seem to, and
they look like they should, too. See t4014-format-patch, for one.
But you're right. I should have reviewed them earlier. Anyway, there is
not many tests which have "--chmod" in them:
t4006-diff-mode.sh, t4014-format-patch.sh, t6031-merge-recursive.sh,
and t9500-gitweb-standalone-no-errors.sh.
The t4006 does not bother to look at working tree (good),
t4014 ...
| Feb 11, 4:05 am 2009 |
| Johannes Sixt | Re: [PATCH] Disable filemode rebase tests in t3400-rebas ...
Yes. And the reason why the test does not fail here is because the mode
change is outright ignored, and the test doesn't check whether the result
meets the expectations.
-- Hannes
--
| Feb 11, 4:30 am 2009 |
| Stefan Karpinski | Re: [RFC] post-commit hook to "fix" patches
I'm CC'ing a couple people who replied to the thread I referenced
earlier, in case they're interested and would otherwise miss this
message.
Especially Marc Weber, who expressed interest in having a good
solution to this problem. Does this address what you wanted? I like it
because it allows you to transparently and automatically enforce style
policy and:
- it doesn't require modifying git,
- it's efficient (no overhead except on commit),
- it doesn't pretend to be a clean/smudge ...
| Feb 11, 2:56 am 2009 |
| Stefan Karpinski | [RFC] post-commit hook to "fix" patches
I just wrote the following post-commit hook that I thought others
might find interesting or useful. It's a non-intrusive, efficient and
IMO elegant solution to the problem that I was trying to solve here:
http://thread.gmane.org/gmane.comp.version-control.git/98228
The post-commit hook calls a named "git-fix-patch", presumed to be in
the path somewhere, which munges a git diff to enforce whatever
stylistic rules a project might have (typically whitespace)---but only
in added lines. The hook ...
| Feb 11, 2:48 am 2009 |
| Ferry Huberts (Pelagic) | Re: [EGIT] [PATCH] Make sure that the commit message has ...
I'm sorry about that. Appearently I was working with an out of date
repository and plugin.
I also agree that fixing it in the getter is a better idea.
This was my first patch for egit, looking forward to more. I'll try to
double check better though :-)
--
| Feb 11, 11:14 am 2009 |
| Shawn O. Pearce | Re: [EGIT] [PATCH] Make sure that the commit message has ...
Doesn't this change that I committed yesterday also fix this?
commit 72cb3bd763f17a7d9894a8443e05965ff5e77157
Author: Shawn O. Pearce <spearce@spearce.org>
Date: Tue Feb 10 09:13:06 2009 -0800
Append Signed-off-by text in the commit message editor
The user can see and edit the Signed-off-by line in the commit
dialog before committing. Toggling the existing checkbox now
updates the message to add or remove the user's Signed-off-by
line, displaying the final ...
| Feb 11, 9:13 am 2009 |
| Robin Rosenberg | Re: [EGIT] [PATCH] Make sure that the commit message has ...
It does, so this patch is redundant. I also thing Yann's patch was the
correct place for the handling the problem.
-- robin
--
| Feb 11, 10:53 am 2009 |
| Ferry Huberts (Pelagic) | [EGIT] [PATCH] Make sure that the commit message has Uni ...
From 2ad66e099fb35ad9a0d97e553843434b68ec82c9 Mon Sep 17 00:00:00 2001 From: Ferry Huberts <ferry.huberts@pelagic.nl>
Date: Wed, 11 Feb 2009 08:29:36 +0100
Subject: [PATCH] Make sure that the commit message has Unix format line delimiters
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
---
.../egit/ui/internal/actions/CommitAction.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git ...
| Feb 11, 12:45 am 2009 |
| Brent Goodrick | [PATCH] Fix file mark handling and sort side-effects in git.el
The `sort' Elisp function works destructively, causing anomalies where
operations on multiple files would be performed on one file. This
checkin works around that by doing a deep copy with `append'.
Also, git-add-file needed to pass 'modified to git-marked-files-state,
as otherwise, files that are modified but not yet in the index would
not show up in the git-marked-files-state return value, which would
then cause a prompt for file to show up when the files are clearly
marked in the status ...
| Feb 10, 11:12 pm 2009 |
| Alexandre Julliard | Re: [PATCH] Fix file mark handling and sort side-effects ...
This shouldn't be necessary, it's OK for git-status-update-files to
destroy the list. If there are callers that want the list to be
Not sure what you mean here, it should not be possible for a file to be
in modified state but not in the index. If you mean using git-add-file
to do an update-index on an already tracked file, that's not what it's
meant to do.
--
Alexandre Julliard
julliard@winehq.org
--
| Feb 11, 3:56 am 2009 |
| Elijah Newren | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Yeah, I also saw a speed-up, though the difference was less pronounced
-- 19.7 seconds versus 19.5 (that was the average for 5 runs, after
first doing a run that I ignored to make sure I was comparing
hot-cache to hot-cache).
I'm a little surprised why my numbers were so much lower than yours,
though. I don't think of my hard drive and CPU as being all that
quick -- is this a difference in packing, by chance, with your
repository not having recently been repacked?
--
| Feb 11, 8:23 am 2009 |
| newren | [PATCH] fast-export: ensure we traverse commits in topol ...
From: Elijah Newren <newren@gmail.com>
fast-export will only list as parents those commits which have already
been traversed (making it appear as if merges have been squashed if not
all parents have been traversed). To avoid this silent squashing of
merge commits, we request commits in topological order.
Signed-off-by: Elijah Newren <newren@gmail.com>
---
builtin-fast-export.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-fast-export.c ...
| Feb 10, 11:03 pm 2009 |
| Jeff King | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Nope. See how the CPU is more or less pegged in the numbers above? Cold
cache looks like this:
$ echo 3 >/proc/sys/vm/drop_caches
$ time git fast-export --all --signed-tags=strip >/dev/null
real 1m11.148s
user 1m3.952s
sys 0m0.760s
So only 7 extra seconds paging in. Hooray for packing. :)
-Peff
--
| Feb 11, 10:37 am 2009 |
| Jeff King | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Hmm.
In git.git:
$ time git fast-export --all --signed-tags=strip >/dev/null
real 1m6.013s
user 1m3.840s
sys 0m2.140s
$ time git fast-export --all --signed-tags=strip --topo-order >/dev/null
real 0m49.018s
user 0m47.987s
sys 0m0.888s
I certainly didn't expect it to be _faster_. More efficient use of the
delta cache, maybe?
-Peff
--
| Feb 11, 6:56 am 2009 |
| Johannes Schindelin | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Hi,
ACK.
Ciao,
Dscho
--
| Feb 11, 3:25 am 2009 |
| Mike Ralphson | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Any comparative timings? We don't need to rename this to 'git
reasonably-speedy-export'? 8-)
Mike
--
| Feb 11, 3:48 am 2009 |
| newren | [PATCH] Add new testcase to show that fast-export can sq ...
From: Elijah Newren <newren@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
---
I'm not certain this testcase will actually trigger the bug for everyone,
since I don't know the order of commits used by git rev-list. It does
trigger it for me. What you need is a history that looks like
B--D
/ /
A--C
with the master branch pointing at D, and have "git rev-list --all" show
these commits in the order
C
D
B
A
If you have such a repository, "git fast-export ...
| Feb 10, 11:03 pm 2009 |
| Johannes Schindelin | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Hi,
What we _could_ do is add proper error handling: fast-export should
recognize that it did not see the commit yet, and error out suggesting
using --topo-order with fast-export.
Ciao,
Dscho
--
| Feb 11, 3:59 am 2009 |
| Johannes Schindelin | Re: [PATCH] fast-export: ensure we traverse commits in t ...
Hi,
Or a warm against a cold cache?
Hides,
Dscho
--
| Feb 11, 8:18 am 2009 |
| Jeff King | Re: [PATCH] fast-export: ensure we traverse commits in t ...
I don't think the hard drive matters much at all; the CPU is pegged the
whole time. I'm not fully packed, but almost so. I suspect it is a
combination of:
1. I compile git with "-g" and no optimizations to make debugging
easier.
2. My system sucks. It is a 1.8GHz dual Athlon from around 2003.
fast-export should be pretty memory intensive, which I'm sure is
saturating my totally rocking 266MHz FSB.
Just for fun, I tried:
- fully repacking; no change
- ...
| Feb 11, 10:53 am 2009 |
| Jay Soffian | [PATCH 0/3] remote HEAD improvements
There is currently no porcelain for dealing with remote HEADs (i.e.
$GIT_DIR/remotes/<remote>/HEAD). This series:
1) Teaches git remote a new "sethead" verb:
To set a remote HEAD explicitly:
$ git remote sethead <name> <branch>
To set a remote HEAD to match the upstream repo:
$ git remote sethead <name> -a
To delete a remote HEAD:
$ git remote sethead <name> -d
2) Teaches git remote show to display the remote HEAD:
$ git remote show origin
* remote origin
URL: ...
| Feb 10, 11:01 pm 2009 |
| Jay Soffian | [PATCH 1/3] builtin-remote: move duplicated cleanup code ...
Moved some identical lines of code into their own function in
preparation for adding additional functionality which will use this
function as well.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
builtin-remote.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c
index db18bcf..00e7ca5 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -632,6 +632,14 @@ static void show_list(const char *title, struct ...
| Feb 10, 11:01 pm 2009 |
| Jay Soffian | [PATCH 2/3] builtin-remote: teach show to display remote HEAD
The remote HEAD cannot be determined unambiguosly, so use the same
heuristics as builtin-clone's locate_head().
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
builtin-remote.c | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c
index 00e7ca5..0be8bfd 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -212,6 +212,7 @@ static void read_branches(void)
struct ref_states {
struct ...
| Feb 10, 11:01 pm 2009 |
| Jay Soffian | [PATCH 3/3] builtin-remote: add sethead verb
Provide a porcelain command for setting/deleting
$GIT_DIR/remotes/<remote>/HEAD.
While we're at it, document what $GIT_DIR/remotes/<remote>/HEAD is all
about.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
Documentation/git-remote.txt | 20 ++++++++++++++-
builtin-remote.c | 51 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index fad983e..fa7ec46 ...
| Feb 10, 11:01 pm 2009 |
| Eric Kidd | [PATCH] Rough draft: Split a git repo into superproject ...
I have some extremely large git repositories which I want to split into
modules. This could be done using 'git filter-branch' and the following
steps:
1) Create a submodule using --subdirectory-filter.
2) Create a superproject using an index filter to delete the submodule.
3) Commit the submodule to the latest version of the superproject.
Unfortunately, this approach loses all the historical connections
between the superproject and the submodule, breaking tools like 'git
bisect', and ...
| Feb 10, 7:36 pm 2009 |
| Junio C Hamano | [PATCH] Drop double-semicolon in C
The worst offenders are "continue;;" and "break;;" in switch statements.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
* I think this is very trivial. You can use
$ git grep -n -e ';;' --and --not -e 'for *(.*;;' -- '*.c'
to verify I caught all the bad ones.
fast-import.c | 2 +-
rerere.c | 2 +-
tree.c | 2 +-
walker.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index ...
| Feb 10, 6:48 pm 2009 |
| Sitaram Chamarty | Re: [RFC] New command: 'git snapshot'.
Aaah -- thanks! I should have known there'd be an easier
way... :-)
--
| Feb 10, 6:22 pm 2009 |
| Michael J Gruber | Re: [PATCH] lis3lv02d: support both one- and two-byte sensors
Giuseppe,
you may prefer sending this to the kernel mailing list rather than the
git list. But we can tell you the patch is formatted as a proper git
patch ;)
Cheers,
Michael
--
| Feb 11, 4:16 am 2009 |
| Giuseppe Bilotta | [PATCH] lis3lv02d: support both one- and two-byte sensors
Sensors responding with 0x3B to WHO_AM_I only have one data register per
direction, thus returning a signed byte from the position which is
occupied by the MSB in sensors responding with 0x3A.
We support both kind of sensors by checking for the sensor type on init
and defining appropriate data-access routines and sensor limits (for the
joystick) depending on what we find.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
As pointed out by Eric, there's no need to jump through ...
| Feb 10, 5:01 pm 2009 |
| Nanako Shiraishi | Re: [RFC/PATCH] shortstatus v1
git-add -N came much later, late August 2008, and is available only in v1.6.1 and later.
I think you want to export GIT_INDEX_FILE you set to the temporary file before running these two commands.
--
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
--
| Feb 10, 5:08 pm 2009 |
| Ulrik Sverdrup | Re: [RFC] New command: 'git snapshot'.
On Wed, Feb 11, 2009 at 12:58 AM, Ulrik Sverdrup
Ok I didn't test this. Stash creation fails because the add -N status
is not quite "tracked but no content staged", but rather you _have_ to
stage the files at a later point. git add -N is just a reminder thing?
Error output:
plugin-gui.log: not added yet
fatal: git-write-tree: error building trees
Cannot save the current index state
Shame, I wish the above script worked.
--
| Feb 10, 5:05 pm 2009 |
| Junio C Hamano | Re: [PATCH] git-svn: fix broken symlink workaround when ...
Thanks; I'll pull.
--
| Feb 11, 11:41 am 2009 |
| Eric Wong | [PATCH] git-svn: fix broken symlink workaround when swit ...
Thanks to Anton Gyllenberg <anton@iki.fi> for the bug report
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
Thanks Anton, I've made the following patch along with your
testcase and pushed to git://git.bogomips.org/git-svn
Can you let me know if it works on a real repo (or breaks anything
else)? It's once again way past my bed time...
git-svn.perl | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index ...
| Feb 11, 3:12 am 2009 |
| Anton Gyllenberg | Re: [PATCH] git-svn: fix broken symlink workaround when ...
I checked out that version and it works perfectly on the real repo I
initially noticed the problem on. The end results are identical to
git-svn from v1.6.0.4 (predates the symlink scan) when fetching 2000+
revisions spanning the problematic branch messup. Works and did not
break anything for me.
Thank you for your work on git-svn!
Anton
--
| Feb 11, 10:44 am 2009 |
| Marc Branchaud | Re: [PATCH] Make 'remote show' distinguish between merge ...
I agree.
I'm happy to hammer out and implement new output for 'remote show', but is there any chance that such a change would be accepted?
How about something a bit tighter, merging the local branch list with the remote branch list:
* remote origin
URL: git://git.kernel.org/pub/scm/git/git.git
Remote branches:
html Not tracked
master Tracked by local branches:
master (merges)
mywork (rebases)
next Tracked by local branch:
...
| Feb 11, 9:59 am 2009 |
| Junio C Hamano | Re: [PATCH] Make 'remote show' distinguish between merge ...
Good point.
--
| Feb 11, 10:35 am 2009 |
| Johannes Sixt | Re: [PATCH] Make 'remote show' distinguish between merge ...
I find this form more useful than the one below because of the clear
-- Hannes
--
| Feb 11, 10:12 am 2009 |
| Marc Branchaud | Re: [PATCH] Make 'remote show' distinguish between merge ...
The current test case for 'remote show' (without my rebase patch) is:
* remote origin
URL: $(pwd)/one
Remote branch merged with 'git pull' while on branch master
master
New remote branch (next fetch will store in remotes/origin)
master
Tracked remote branches
side
master
Local branches pushed with 'git push'
master:upstream
+refs/tags/lastbackup
Should that last bit about 'git push' change as well (I admit I don't really understand what that part is ...
| Feb 11, 2:35 pm 2009 |
| Johannes Schindelin | Re: RFC: Flat directory for notes, or fan-out? Both!
Hi,
Well, I think in the case of notes, we have to optimize for random access
of dozens of blobs rather than for merging. I was well aware that the
merging is more expensive when the hierarchy is not defined a priori.
Ciao,
Dscho
--
| Feb 11, 4:05 pm 2009 |
| Johannes Schindelin | Re: RFC: Flat directory for notes, or fan-out? Both!
Hi,
Nope, the issue was that it would take too long to recreate IIRC.
BTW I am no longer a fan of the on-disk cache; I think it is an ugly
solution to a problem that should be solved without ugliness using a
flexible directory layout in the note ref' tree.
I mean, we really can allow different directory layouts as Sam described,
with a few benefits, and only slight downsides. If we support multiple
levels anyway, the code to allow arbitrary splits is not complicated (see
Sam's ...
| Feb 11, 1:57 pm 2009 |
| Jeff King | Re: RFC: Flat directory for notes, or fan-out? Both!
That was my first thought, as well. Maybe your original implementation
wasn't so bad, after all. :)
I searched through the archive to find a list of criticisms, but I
didn't see any. So I guess the problem was just a concern that it might
end up too complex.
-Peff
--
| Feb 11, 1:02 pm 2009 |
| Junio C Hamano | Re: RFC: Flat directory for notes, or fan-out? Both!
Once you start talking about "remove the slashes", you are assuming that
the custom merge algorithm must look at *all the paths* in the two trees
being merged, and it is a sign that your thinking is so trapped in the
inefficient way the current merge-recursive and unpack-trees based merge
works, and cannot think about the possibility that there could be more
efficient way to do merges. Not very good.
If you have a fixed boundary and if most subtrees are the same between two
notes during a ...
| Feb 11, 2:16 pm 2009 |
| Robin Rosenberg | Re: [PATCH] Make repack less likely to corrupt repository
Hmm, ok drop the error at that point. But maybe we'd need to save it so we
can display it in case the recovery fails, in which case it may actually contain
some useful hint about went wrong.
-- robin
--
| Feb 11, 10:08 am 2009 |
| Junio C Hamano | Re: [PATCH] Make repack less likely to corrupt repository
... I think we should not even show unlink errors, if "this is not an
error, nothing to worry about" is the official stance about such failure;
otherwise the errors will scare people, *and* others then doubly complain
that even the command detects errors, the whole thing does *not* error
out.
--
| Feb 10, 5:31 pm 2009 |
| Robin Rosenberg | Re: [PATCH] Make repack less likely to corrupt repository
A repack may or may not yield a better packed repo. In this case, not, but for a
different reason than failing to find better deltas. Given the circumstances that is
most likely to cause the "failure (repacking on windows), this is "normal" behaviour
and no reason to scare the user with an error code. The unlink error might be
enough. I think scripts should be able to continue too. The alternative would
be to have a switch to repack that scripts and UI's could enable, like -q for "don't
flag ...
| Feb 10, 5:27 pm 2009 |
| Junio C Hamano | Re: [PATCH] fix the installation path for html documentation
Thanks, both.
--
| Feb 11, 11:39 am 2009 |
| Guanqun Lu | [PATCH 1/2] code cleanup in sha1_file.c: xmalloc -> xcalloc
'xmalloc' followed immediately by 'memset' is replaced
with 'xcalloc', and a simple grep in this project seems
to show that it's the only place.
Signed-off-by: Guanqun Lu <guanqun.lu@gmail.com>
---
sha1_file.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index 8868b80..93e5fc0 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -858,8 +858,7 @@ unsigned char* use_pack(struct packed_git *p,
static struct packed_git ...
| Feb 10, 11:43 pm 2009 |
| Guanqun Lu | [PATCH 2/2] lockfile: set lk->fd = -1 in 'rollback_lock_ ...
Post-conditions when these functions return successfully:
lk->fd == -1? lk->filename[0] == '\0'?
close_lock_file() yes no
commit_lock_file() yes yes
rollback_lock_file() no* yes
[*] This commit changes this 'no' in rollback_lock_file() to 'yes',
which achieves more robust and unified interface.
Signed-off-by: Guanqun Lu <guanqun.lu@gmail.com>
---
lockfile.c | 4 +++-
1 files changed, 3 insertions(+), 1 ...
| Feb 10, 11:43 pm 2009 |
| Karl | Re: [StGit PATCH] Add mergetool support to the classic S ...
Hmm, what does this line do, and why isn't it needed anymore? I don't
know this part of StGit, I'm just curious ...
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
--
| Feb 11, 2:25 am 2009 |
| Karl | Re: [StGit PATCH] Add mergetool support to the classic S ...
Oh, right, it removes the .current/.patched/.ancestor files.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
--
| Feb 11, 2:27 am 2009 |
| Karl | Re: [StGit PATCH] Check for local changes with "goto"
Yeah, I can't find anything more to complain about. :-)
Acked-by: Karl Hasselström <kha@treskal.com>
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
--
| Feb 11, 2:05 am 2009 |
| Karl | Re: [StGit PATCH] Add automatic git-mergetool invocation ...
That could very well be a good idea -- I can't think of anything wrong
with it. (And it's a good idea to make this a parameter rather than
That sounds like a plan.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
--
| Feb 11, 6:11 am 2009 |
| Karl | Re: [StGit PATCH] Add automatic git-mergetool invocation ...
Yes, one advantage of having it here is that if the user resolves the
conflict, we can just continue. I'm not sure I personally like that
mode of operation -- you might have guessed by now that I like
noninteractive mechanisms -- but I can see how it's useful to someone
who does.
Another advantage of having it here is that it automatically just
works for all commands, not just "stg push".
The disadvantage that I see is that we ask the user to put work into
resolving conflicts before ...
| Feb 11, 2:20 am 2009 |
| Catalin Marinas | Re: [StGit PATCH] Add automatic git-mergetool invocation ...
I find it useful when I prepare a kernel release and pick patches from
many branches, it saves some typing with having to run the mergetool
It works for commands that use Transaction.push_patch(). Other
commands that use IndexAndWorktree.merge() via some other function
would not work. Will there be such functions? I suspect a "sync"
implementation would need additional support in Transaction.
Any thoughts on calling mergetool from IndexAndWorktree.merge() (with
an additional parameter to ...
| Feb 11, 3:48 am 2009 |
| Shawn O. Pearce | Re: [PATCH JGIT] In the commit dialog, deal with Signed- ...
That's whitespace corruption.
--
Shawn.
--
| Feb 11, 12:40 pm 2009 |
| Robin Rosenberg | Re: [PATCH JGIT] Deal with the signed-off in the commit ...
Spell "platform"
These is two unrelated changes. I don't deeply about the switch, but
I do want the line end handling so we don't get double spaced messages.
The toggle swithch will happily double the SOB-line. It assumes it is
the last line. Isn't that too strict, though it is the common idiom, but
we also have other types of X-by-lines that we often place below
the SOB line.
Signed-off-by: hacker
Signed-off-by: pschorff
Acked-by: bar
-- robin
--
| Feb 10, 5:16 pm 2009 |
| Yann Simon | [PATCH JGIT] In the commit dialog, deal with Signed-off- ...
The previous implementation made the assumption that
the Signed-off-by is always on the last line.
Correct this assumption and deal with Signed-off-by everywhere in
the commit message.
Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
---
This patch should correct this assumption.
-- yann
.../egit/ui/internal/dialogs/CommitDialog.java | 65
++++++++++++--------
1 files changed, 40 insertions(+), 25 deletions(-)
diff ...
| Feb 11, 10:02 am 2009 |
| Jay Soffian | Re: [PATCH] builtin-branch: improve output when displayi ...
Bump, since this complements gmane 109374.
--
| Feb 10, 11:47 pm 2009 |
| Junio C Hamano | Re: fact-import: failed to apply delta
Thanks, both.
--
| Feb 11, 11:30 am 2009 |
| Shawn O. Pearce | Re: fact-import: failed to apply delta
Oy. I missed that we added this function. Patch follows.
--8<--
Clear the delta base cache if a pack is rebuilt
There is some risk that re-opening a regenerated pack file with
different offsets could leave stale entries within the delta base
cache that could be matched up against other objects using the same
"struct packed_git*" and pack offset.
Throwing away the entire delta base cache in this case is safer,
as we don't have to worry about a recycled "struct packed_git*"
matching to ...
| Feb 11, 11:15 am 2009 |
| Daniel Barkalow | Re: fact-import: failed to apply delta
That's not the problem; the problem is calling free on a struct packed_git
that has been given to unpack_entry(), because it raises the possibility
of having the memory allocated to a different pack in the future and
ending up with actively wrong entries in the delta cache, since it keys
off of the pointer.
I think free_pack_by_name() also needs to drop the entries that are from
the freed pack, to avoid having repack able to get the same problem,
although I wouldn't be surprised if ...
| Feb 11, 11:09 am 2009 |
| Daniel Barkalow | Re: fact-import: failed to apply delta
I think it would be more clear to do something below (instead of the
original patch); I think there's a better chance of authors knowing when
to use this function than knowing when to use a function based on what it
actually does, and there's a better chance that any future optimizations
that need to be flushed under the same conditions would get included.
--8<--
Provide a function to free a struct packed_git that may have been used
When we look up entries in a pack, we sometimes cache ...
| Feb 11, 11:33 am 2009 |
| Sam Vilain | Re: RFC: Flat directory for notes, or fan-out? Both!
Yeah. I see your point and you may be right, that a 12/28 split hurts
no-one, if we take this to the benchmarks. There's certainly savings in
terms of total object count for the small users by using a smaller split.
I just already wrote the code to handle an arbitrary split for the
features written so far[1]. If *I* can write it, in C, it means it must
not be that complicated ;-)
So it comes down to how complicated things are when merging happens. If
12 is fixed in stone this is simple, ...
| Feb 10, 10:05 pm 2009 |
| Sam Vilain | Re: RFC: Flat directory for notes, or fan-out? Both!
My solution suffers from that problem too, but I personally still don't
think that the answer is to fix the trie boundary.
The only case where it hurts is when you want to merge. Nothing else
should care. So, if a merge of these note trees sees two different trie
sizes then it can convert the shorter one to the longer length first,
and then try the merge again. So you get the pain, but only once. And
when a project decides that its split is too small, it can split then
and it should ...
| Feb 10, 8:30 pm 2009 |
| Linus Torvalds | Re: RFC: Flat directory for notes, or fan-out? Both!
But what's the advantage of the added complexity?
The non-fixed trie only helps for the case that doesn't matter - just a
few annotations. If you have a thousand annotations or less, you _really_
don't care. Whatever you do will be fine.
So the whole thing only matters once you have tens of thousands of
entries, and then you do want to have fan-out. No?
Linus
--
| Feb 10, 8:54 pm 2009 |
| Johannes Schindelin | Re: RFC: Flat directory for notes, or fan-out? Both!
Hi,
I think I either missed your mail or had to ignore it due to too much day
job work.
It is a good first step, of course the next step would be to load the
trees on-demand.
Oh, and the best approach to handle the "to Trie or not to Trie" question
would be to be strict in what we emit (12/28 it seems, by authority of
Linus), and liberal in what we accept, IMHO. That is, accept whatever
partition of the SHA-1, stopping on the first we found (smaller number of
slashes, or when ...
| Feb 11, 5:35 am 2009 |
| Sam Vilain | Re: RFC: Flat directory for notes, or fan-out? Both!
Great idea! Glad I thought of it! ;-)
http://thread.gmane.org/gmane.comp.version-control.git/106715/focus=107975
I hoped my approach allowed for smarter things later, such as splitting
into smaller buckets whenever a directory gets more than N entries or
periodically rebalancing if required. But the initial version is at
least forward thinking to support reading it.
Merging them will need to be savvy of this of course.
Sam.
--
| Feb 10, 6:14 pm 2009 |
| Boyd Stephen Smith Jr. | Re: RFC: Flat directory for notes, or fan-out? Both!
Perhaps it's not a traditional trie structure but that was the closest anal=
ogy=20
I could come up with. I was actually thinking of something between a trie =
and=20
a b-tree, I think. (It has been a long time since data structures class...)
The issue, as I understand it, it that we don't have gargantuan tree object=
s. =20
Reading and writing are slow and they'd also take up way to much memory if =
you=20
are only trying to find a few commits.
So, we figure out a maximum tree size ...
| Feb 10, 6:58 pm 2009 |
| Linus Torvalds | Re: RFC: Flat directory for notes, or fan-out? Both!
That sounds unnecessarily complicated. It also really sucks for the case
you want to optimize: small differences between trees, where you don't
need to even linearize the common parts.
Why not make it just a straight fixed 12-bit prefix, single-level trie.
Sure, if you have less than 4k objects, it's going to add an unnecessary
indirection, and close to an extra tree object for each object. But it
should scale pretty well to a fairly huge numbe of notes. IOW, if you have
less than ...
| Feb 10, 7:35 pm 2009 |
| Sam Vilain | Re: RFC: Flat directory for notes, or fan-out? Both!
I think my patch from 1 Feb addressed this, at least for the operations
it implemented.
I just don't see why you need to decide up front what the split is going
to be. Just read the next tree, descend into the closest matching tree
until you find the record you are looking for and that's it. Sure, my
patch just loads it all and throws it into a hash - this should still be
efficient for short log operations even if the hash table ends up 1MB.
But why take my guess. Let's stress test ...
| Feb 10, 8:19 pm 2009 |
| Fabio Augusto Dal Castel | Re: [RFC] New command: 'git snapshot'.
Yes. And also for an "--untracked" (as already suggested).
Since stashes does not expire anymore (as correctly pointed by
Brandon), a snapshot could be reduced to an alias for:
git stash --no-reset --untracked
(except for the branch storage)
However, the rationale behind a new command was also to avoid the
'loss of identity' of stash (as currently implemented). I always saw
stash as a way to allow a temporary hack or a pull. If we start adding
a lot of switches into stash that ...
| Feb 11, 1:40 pm 2009 |
| Matthieu Moy | Re: [RFC] New command: 'git snapshot'.
I also think adding options to "git stash" would be better than
creating a new command. The "git has too many commands" is already one
of the blocking factors for newcommers.
And indeed, I don't think the choice in the comparison table between
stash and snapshot should be all-or-nothing. There could be individual
options like --save-untracked, --per-branch, ... (--no-reset would
probably be redundant with stash create, but maybe stash create needs
a --keep-object-somewhere-in-a-reference like ...
| Feb 11, 2:04 am 2009 |
| Jeff King | Re: [RFC] New command: 'git snapshot'.
Sure, I was just responding to that particular statement about reset.
But I think it generalizes. Why not "--untracked" as an option?
In other words, there are several behaviors that people might not like
about stash, and I think they can be combined in multiple ways. So one
solution is to make another command which chooses a different set of
behaviors. But what about the person who wants "--untracked" but not
"--no-reset"? Do they make a third command?
So it is much more flexible to make ...
| Feb 11, 6:43 am 2009 |
| Thomas Rast | Re: [RFC/RFH] Fun things with git-notes, or: patch track ...
Q.E.D.! The correct repository is
git://repo.or.cz/git/trast.git notes/full
git://repo.or.cz/git/trast.git notes/terse
Sorry for the noise.
=2D-=20
Thomas Rast
trast@{inf,student}.ethz.ch
| Feb 11, 3:58 pm 2009 |
| Thomas Rast | Re: [RFC/RFH] Fun things with git-notes, or: patch track ...
Thanks, good idea. I changed the code to parse the required data, and
we're now up to 1502 annotations.
Unfortunately I noticed there's a bug in the mail input stage:
Python's mailbox module assumes any '^From ' line starts a new mail,
while gmane apparently uses a slightly different format based on the
double newlines too (and they always have the same 'From
news@gmane.org Tue Mar 04 03:33:20 2003' separator too), and doesn't
quote '^From ' in the bodies. So any mail containing such body ...
| Feb 11, 3:52 pm 2009 |
| Elijah Newren | Re: git fast-export issue -- anyone know if this is a bu ...
Hi,
I think I found the source of the bug, and have sent out a couple
patches in separate emails. However, I wanted to correct my statement
here. The repositories created by cvs2git did not have such a commit
history; I think it was simply too late at night and I wasn't reading
things correctly.
Elijah
--
| Feb 10, 11:12 pm 2009 |
| Junio C Hamano | [PATCH] revision traversal and pack: notice and die on m ...
cc0e6c5 (Handle return code of parse_commit in revision machinery,
2007-05-04) attempted to tighten error checking in the revision machinery,
but it wasn't enough. When get_revision_1() was asked for the next commit
to return, it tries to read and simplify the parents of the commit to be
returned, but an error while doing so was silently ignored and reported as
a truncated history to the caller instead.
This resulted in an early end of "git log" output or a pack that lacks
older commits from ...
| Feb 11, 2:27 am 2009 |
| Jeff King | Re: [PATCH 4/6] remote prune: warn dangling symrefs
Is the special case really about "this is HEAD", or is it about writing
versus reading? For example, in an empty repo, without this patch I now
get:
$ git init && git show
warning: ignoring dangling symref HEAD.
fatal: bad default revision 'HEAD'
which makes a lot of sense. But _writing_ to any dangling symref
shouldn't trigger a warning.
Admittedly, we have gotten by without this warning until now, and I
doubt anyone will want to write to other symrefs that are branches to ...
| Feb 11, 11:35 am 2009 |
| Junio C Hamano | Re: [PATCH 4/6] remote prune: warn dangling symrefs
As a bonus, this issues unwarranted warning when creating the initial
commit in an empty repository.
The following fixes it.
-- >8 --
Subject: [PATCH] Squelch overzealous "ignoring dangling symref" in an empty repository
057e713 (Warn use of "origin" when remotes/origin/HEAD is dangling,
2009-02-08) tried to warn dangling refs/remotes/origin/HEAD only when
"origin" was used to refer to it. There was one corner case a symref is
expected to be dangling and this warning is unwarranted: ...
| Feb 11, 10:30 am 2009 |
| Jeff King | Re: [PATCH 4/6] remote prune: warn dangling symrefs
I looked into what it would take to fix this, and it's a little hairy.
"git commit" calls:
if (get_sha1("HEAD", head_sha1))
initial_commit = 1;
So it is fine with HEAD not resolving, but that intent is not passed to
lower-level code. So we could add a "flags" field, but the callstack
looks like:
dwim_ref
get_sha1_basic
get_sha1_1
get_sha1_with_mode
get_sha1
all of which would need to pass the flag through, and all of which have
tons of callers (though we ...
| Feb 11, 11:42 am 2009 |
| Eric Wong | Re: Malformed network data
Hi,
This could be the way branching/tagging is done with the repo.
git-svn does not handle non-standard branching/tagging practices
Hmm.. this is new. Is email_templates.yml an empty file by any chance?
If it's an empty file, can you try pulling the latest from
git://git.bogomips.org/git-svn and see if that fixes at least this for
you? There was a bug that slipped in recently with trying to handle
The malformed network data error has not been consistently reproducible
for me. I've seen ...
| Feb 11, 3:23 am 2009 |
| Ted Pavlic | Re: [ANNOUNCE] tig-0.14
I haven't tried the patch yet, but I can tell you that (on my system)
the other "half" of the problem is there before the patch.
That is, the trailing whitespace on a new line goes without highlight. I
was under the (wrong?) impression that this was desired and that the
whitespace highlighting was a bug. No?
(in fact, it might be useful if the trailing "screen space" is *not*
highlighted. That makes it easy to X-ray trailing whitespace buried in
the changeset)
--Ted
--
Ted ...
| Feb 11, 7:06 am 2009 |
| Ted Pavlic | Re: [ANNOUNCE] tig-0.14
OS X 10.4.11
iTerm 0.9.6.1201
TERM=xterm-color
The problem only occurs with "j" and "k" when viewing multi-line
displays. I do /not/ see the problem when viewing the one-line changeset
history. It only causes a problem when I view the multi-line displays
(e.g., when actually viewing a changeset).
For example, in git.git, if I "tig" and then scroll through the
changesets, I don't see the problem. If I <CR> on a changeset so that it
opens in the bottom half of the screen, I see the ...
| Feb 11, 7:03 am 2009 |
| Ted Pavlic | Re: [ANNOUNCE] tig-0.14
Perhaps not surprisingly, when I ssh into a Linux machine and run tig, I
have the same problem.
That is, "tig" is being run on the Linux machine, but the terminal is on
my Mac.
It might be interesting that although several people with this problem
use a Mac, we do not use the same terminal program.
--Ted
--
Ted Pavlic <ted@tedpavlic.com>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to ...
| Feb 11, 7:12 am 2009 |
| Ted Pavlic | Re: [ANNOUNCE] tig-0.14
> What is tig?
*) Is there any way for "tig" to emulate "less -R"?
That is, if an output is already colorized, can tig just pass through
the ANSI?
*) When doing "git diff|tig" when there directory is clean, tig should
probably exit immediately, right?
*) Also, is there a way to configure "tig" to colorize and *exit* if the
piped text doesn't fill a page?
(in other words, I'd like "tig" to be able to replace my current "less
-FRX" pager)
Thanks --
Ted
--
Ted Pavlic ...
| Feb 11, 10:47 am 2009 |
| Ted Pavlic | Re: [ANNOUNCE] tig-0.14
It fixes it for me.
As noted, the highlight in the changesets does not go to the end of the
line (where there is a cursor displayed) as it did before. I can see how
some people might view this as a feature (i.e., having the whole line
highlighted).
--Ted
--
Ted Pavlic <ted@tedpavlic.com>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to defeat ALS.
--
| Feb 11, 7:19 am 2009 |
| Miklos Vajna | Re: [PATCH] Switch receive.denyCurrentBranch to "refuse"
[ Sorry for the late reply, I did not read my mail recently. ]
On Fri, Jan 30, 2009 at 02:28:39PM +0100, Johannes Schindelin <Johannes.Sch=
So in an "I know what I'm doing" mode, is "git config core.bare true" in
a non-bare repo considered as a better workaround than using "git config
receive.denyCurrentBranch ignore"?
| Feb 10, 5:11 pm 2009 |
| Junio C Hamano | Re: [PATCH] Switch receive.denyCurrentBranch to "refuse"
If you have to ask, you do not know what you're doing ;-)
--
| Feb 10, 6:04 pm 2009 |
| Deskin Miller | Re: [PATCHv2 5/6] gitweb: last-modified time should be c ...
On Fri, Feb 6, 2009 at 18:00, Giuseppe Bilotta
Sorry the topic's cold, but...
git reflog?
Seems like one could find the oldest time the commit appears in the
reflog, for the branch one is interested in. You can use the commit
time to limit the search through the reflog, but there would be clock
skew concerns.
Deskin Miller
--
| Feb 10, 8:10 pm 2009 |
| Giuseppe Bilotta | Re: [PATCHv2 5/6] gitweb: last-modified time should be c ...
Bingo! Thanks a lot
oblomov@rbot ~ $ GIT_DIR=/var/git/rbot.git/ git reflog show
--since="two days ago" master | cat
7324b32... master@{0}: push
e2dc08d... master@{1}: push
oblomov@rbot ~ $ GIT_DIR=/var/git/rbot.git/ git reflog show
--since="yesterday" master | cat
oblomov@rbot ~ $
I'll try to work it in the next review for this patchset.
--
Giuseppe "Oblomov" Bilotta
--
| Feb 11, 2:02 am 2009 |
| Jakub Narebski | Re: [PATCHv2 5/6] gitweb: last-modified time should be c ...
Assuming that you have reflog enabled (yes, it is default now)...
So you would have to provide fallback in the case there is no reflog.
BTW. "git reflog" is porcelain; it would be better to parse reflog
directly, I think.
--
Jakub Narebski
Poland
--
| Feb 11, 2:18 am 2009 |
| Giuseppe Bilotta | Re: [PATCHv2 5/6] gitweb: last-modified time should be c ...
Does disabling reflog remove old reflogs? IOW, can I check if reflog
is enabled just by opening the reflog file and assuming reflog isn't
enabled if it's not there? Falling back to the commit date would still
work decently.
Since we're only interested in the last reflog date, what we can do is
to read the last line and get the unix time which is held two places
before the tab separating the metadata from the log message. Correct?
--
Giuseppe "Oblomov" Bilotta
--
| Feb 11, 2:54 am 2009 |
| Marcel M. Cary | Re: [RFC PATCH] git-sh-setup: Use "cd" option, not /bin/ ...
I have not. I've seen only that it's POSIX, is on BSD and Linux, and
Actually, since I haven't heard any continued interest in following up
with the suggestion to use "cd -P", I don't see much benefit myself, and
there is concern about it not being compatible enough, I'm content to
just table this.
I agree that keeping working setups working is important, and it seems
like a major project to research portability of "cd -P" on a list of
platforms that I'm guessing I'd have to collect ...
| Feb 11, 7:44 am 2009 |
| Jeff King | Re: [RFC PATCH] git-sh-setup: Use "cd" option, not /bin/ ...
Even Solaris /usr/xpg4/bin/sh has it. Their /bin/sh does not, but that
is not a surprise: that shell is useless and already unsupported by git.
I don't know about other obscure platforms (wasn't there some guy
running git on antique SCO machines or something?).
I think it is nice to shoot for "more portable" in general, and I don't
particularly care one way or the other about this feature. But I think
we are somewhat hampered by having no clue what the supported set of
platforms is. I'm ...
| Feb 11, 11:16 am 2009 |
| previous day | today | next day |
|---|---|---|
| February 10, 2009 | February 11, 2009 | February 12, 2009 |
