Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
A non-basename pattern that does not contain /**/ can't match anything
outside the attached directory. Record its directory level and avoid
matching unless the pathname is also at the same directory level.
Without defining what a directory level
Duy Nguyen wrote:
On Fri, Mar 8, 2013 at 3:15 PM, Junio C Hamano gits...@pobox.com wrote:
The possible options are:
+
- - 'no' - Show no untracked files
+ - 'no' - Show no untracked files (this is fastest)
There is a trade-off around the use of -uno between safety and
Hi,
Here is the patch.
Regards,
ch3cooli
0001-mailmap-add-grave-accents-around-mailmap.file-and-ma.patch
Description: Binary data
Hi Harring,
I'm glad to see that there will be another locale for Git.
I reviewed three commit from you. There are some problems:
Because git has a strict and high standard for commit log, so
1. your commit log must have Signed-off-by: line(s).
Commit using commit -s, or using alias such
On Sun, Mar 10, 2013 at 3:20 PM, Junio C Hamano gits...@pobox.com wrote:
+ else if (*p == '/')
+ dirs--;
I presume this is to compensate for a pattern like /pat whose
leading slash is only to anchor the pattern at the level. Correct?
Yes.
Also for the record, we could cut
On Sun, Mar 10, 2013 at 2:34 PM, Junio C Hamano gits...@pobox.com wrote:
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
strncmp is provided length information which could be taken advantage
by the underlying implementation.
I may be missing something fundamental, but I somehow find the
Jonathan Nieder wrote:
* If the file ~/git-shell-commands/no-interactive-login exists,
run no-interactive-login to let the server say what it likes,
then hang up.
* Otherwise, if ~/git-shell-commands/ is present, start an
interactive read-eval-print loop.
* Otherwise, print the
On 03/10/2013 08:05 AM, Jeff King wrote:
On Sat, Mar 09, 2013 at 11:54:36AM +0100, Bernhard Posselt wrote:
Also, I can almost reproduce here, as PatrickHeller/core.git is public.
However, I suspect the problem is particular to your work built on top,
which looks like it is at commit
On Sun, Mar 10, 2013 at 5:58 PM, Junio C Hamano gits...@pobox.com wrote:
Junio C Hamano gits...@pobox.com writes:
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
A non-basename pattern that does not contain /**/ can't match anything
outside the attached directory. Record its directory level
On Sun, Mar 10, 2013 at 11:38 AM, Duy Nguyen pclo...@gmail.com wrote:
glibc's C strncmp version does 4-byte comparison at a time when n =4,
then fall back to 1-byte for the rest.
Looking at this
(http://fossies.org/dox/glibc-2.17/strncmp_8c_source.html), it's not
exactly true.
It would rather
On 03/10/2013 08:05 AM, Jeff King wrote:
On Sat, Mar 09, 2013 at 11:54:36AM +0100, Bernhard Posselt wrote:
Also, I can almost reproduce here, as PatrickHeller/core.git is public.
However, I suspect the problem is particular to your work built on top,
which looks like it is at commit
On Sun, Mar 10, 2013 at 12:43 PM, Antoine Pelisse apeli...@gmail.com wrote:
On Sun, Mar 10, 2013 at 11:38 AM, Duy Nguyen pclo...@gmail.com wrote:
glibc's C strncmp version does 4-byte comparison at a time when n =4,
then fall back to 1-byte for the rest.
Looking at this
On Sun, Mar 10, 2013 at 6:54 PM, Antoine Pelisse apeli...@gmail.com wrote:
On Sun, Mar 10, 2013 at 12:43 PM, Antoine Pelisse apeli...@gmail.com wrote:
On Sun, Mar 10, 2013 at 11:38 AM, Duy Nguyen pclo...@gmail.com wrote:
glibc's C strncmp version does 4-byte comparison at a time when n =4,
By the way, if we know the length of the string, we could use memcmp.
This one is allowed to compare 4-bytes at a time (he doesn't care
about end of string). This is true because the value of the length
parameter is no longer at most.
We still need to worry about access violation after NUL
On Sun, Mar 10, 2013 at 7:11 PM, Antoine Pelisse apeli...@gmail.com wrote:
By the way, if we know the length of the string, we could use memcmp.
This one is allowed to compare 4-bytes at a time (he doesn't care
about end of string). This is true because the value of the length
parameter is no
Sorry for taking so long to reply... :-/
On 09.03.2013, at 19:32, Andrew Wong wrote:
On 03/09/13 06:26, Max Horn wrote:
It tends to fail in separate places, but eventually stabilizes. E.g. I
just did a couple test rebases, and it failed twice in commit 14, then the
third time in commit 15
git help translated the See 'git help command' for more
information... message, but git didn't.
Signed-off-by: Kevin Bracey ke...@bracey.fi
---
git.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git.c b/git.c
index d33f9b3..e484644 100644
--- a/git.c
+++ b/git.c
@@ -536,7
Junio C Hamano gits...@pobox.com writes:
As promised in 0fa2eb530fb7 (add: warn when -u or -A is used without
pathspec, 2013-01-28), git add -u/-A that is run without pathspec
in a subdirectory will stop working sometime before Git 2.0, to wean
users off of the old default, in preparation for
Hi,
On Thu, Mar 07, 2013 at 06:42:43PM +, Ramsay Jones wrote:
Heiko Voigt wrote:
+int git_config_from_strbuf(config_fn_t fn, struct strbuf *strbuf, void
*data)
+{
+ struct config top;
+ struct config_strbuf str;
+
+ str.strbuf = strbuf;
+ str.pos = 0;
+
+
The following issues still exist:
* Error handling: If this should be useful to interrogate configs from
the database during git operations we need a way to recover from
parsing errors instead of dying.
* More tests ?
This is an update with the comments of the first iteration[1]
Because a config callback may start parsing a new file, the
global context regarding the current config file is stored
as a stack. Currently we only need to manage that stack from
git_config_from_file. Let's factor it out to allow new
sources of config data.
Signed-off-by: Heiko Voigt
The only location where cf is set in this file is in do_config_from().
This function has only one callsite which is config_from_file(). In
config_from_file() its ensured that the f member is set to non-zero.
Signed-off-by: Heiko Voigt hvo...@hvoigt.net
---
config.c | 4 ++--
1 file changed, 2
To simplify adding other sources we extract all functions needed for
parsing into a list of callbacks. We implement those callbacks for the
current file parsing. A new source can implement its own set of callbacks.
Instead of storing the concrete FILE pointer for parsing we store a void
pointer.
This can be used to read configuration values directly from gits
database.
Signed-off-by: Heiko Voigt hvo...@hvoigt.net
---
.gitignore | 1 +
Makefile | 1 +
cache.h| 2 ++
config.c | 48
On Sat, Mar 09, 2013 at 06:45:56PM +0100, Jens Lehmann wrote:
Am 07.03.2013 19:59, schrieb Heiko Voigt:
On Thu, Mar 07, 2013 at 10:49:09AM +0100, Daniel Bratell wrote:
Den 2013-03-06 19:12:05 skrev Heiko Voigt hvo...@hvoigt.net:
So to summarize what you are requesting: You want a submodule
git operations are slow on repositories with lots of files, and lots
of tiny filesystem calls like lstat(), getdents(), open() are
reposible for this. On the linux-2.6 repository, for instance, the
numbers for git status look like this:
top syscalls sorted top syscalls sorted
by acc.
Antoine Pelisse apeli...@gmail.com writes:
Currently the documentation of GIT_PERF_REPEAT_COUNT says the default is
five while perf-lib.sh uses a value of three as a default.
Update the documentation so that it is consistent with the code.
Signed-off-by: Antoine Pelisse apeli...@gmail.com
Previously, the command help and the option -h behaved differently
depending on whether a command was specified or not. Old user interface:
Commands with no defaults show usage: git git CMD
To specifically request usage:git help git CMD -h
To get a manual page:
A selection of updates to git-subtree were offered to the list in May of
last year ($gmane/196667) by Herman van Rink.
At the time the commits were available as either a single commit or a
large collection of commits and merges to the git-subtree prior to it's
inclusion in contrib/subtree.
The
From: Paul Cartwright paul.cartwri...@ziilabs.com
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt
index 7ba853e..e0957ee
From: Peter Jaros pja...@pivotallabs.com
Converts a git-submodule into a git-subtree.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
.gitignore
contrib/subtree/git-subtree.sh
test.sh
---
contrib/subtree/git-subtree.sh | 30 +-
From: Matt Hoffman matt.hoff...@quantumretail.com
The repository and branch of a subtree added with the add command is
stored in the .gittrees file.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 8
1 file changed, 8 insertions(+)
diff --git
From: bibendi bibe...@bk.ru
Look in the config file .gittrees for a default repository and
refspec or commit when they are not provided on the command line.
Uses the .gittrees config file in a similar way to how git-submodule
uses the .gitmodules file.
Signed-off-by: Paul Campbell
From: bibendi bibe...@bk.ru
For each subtree listed in .gittrees perform a push or a pull.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
contrib/subtree/git-subtree.sh
---
contrib/subtree/git-subtree.sh | 25 ++---
1 file changed, 22 insertions(+), 3
From: Matt Hoffman matt.hoff...@quantumretail.com
Changing underscores to dashes (push_all - push-all)
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
.gitignore
contrib/subtree/git-subtree.sh
---
contrib/subtree/git-subtree.sh | 17 +
1 file
From: Matt Hoffman matt.hoff...@quantumretail.com
Only when a repository and/or branch are not supplied on the command
line will push and pull look for them in the .gittrees file.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 32
From: Matt Hoffman matt.hoff...@quantumretail.com
The ctrl-M (^M) character used for the carriage return (CR) is not visible
in all (most) text editors and is often silently converted to a new
line (NL) or CR/NL combo.
'say' is a wrapper for echo with accepts the option -e to interperet
escaped
From: Michael Hart mich...@adslot.com
Added a check to ensure that split succeeds before trying to push.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/contrib/subtree/git-subtree.sh
From: Matt Hoffman matt.hoff...@quantumretail.com
Fetches the remote repo as a temporary git-remote then uses
git-diff-tree to do comparison before removing the temporary
git-remote.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
From: Matt Hoffman matt.hoff...@quantumretail.com
Lists subtrees from the .gittrees file.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
contrib/subtree/git-subtree.sh | 19 +--
1 file changed, 17 insertions(+), 2 deletions(-)
diff
From: Nate Jones n...@endot.org
Removes entries in .gittrees where the subtree files are
no longer present on disk.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
contrib/subtree/git-subtree.sh | 15 +--
1 file changed, 13 insertions(+), 2
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
contrib/subtree/git-subtree.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index
From: Herman van Rink r...@initfour.nl
Conflicts:
git-subtree.sh
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
contrib/subtree/git-subtree.sh | 5 +
1 file changed, 5 insertions(+)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.txt | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt
index e0957ee..c8fc103 100644
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.txt | 10 ++
1 file changed, 10 insertions(+)
diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt
index c8fc103..48ba158 100644
---
From: Herman van Rink r...@initfour.nl
Add pull-all, push-all, from-submodule, prune and diff commands
to SYNOPSIS.
Add alternate parameter option for add command.
Use long-form option for specifying prefix.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
git-subtree.sh
---
contrib/subtree/git-subtree.sh | 1 +
contrib/subtree/git-subtree.txt | 4
2 files changed, 5 insertions(+)
diff --git a/contrib/subtree/git-subtree.sh
From: James Roper jro...@vz.net
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
contrib/subtree/git-subtree.sh
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 9 -
contrib/subtree/git-subtree.txt | 5 +
2 files changed,
From: Herman van Rink r...@initfour.nl
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
contrib/subtree/.gitignore
contrib/subtree/git-subtree.sh
contrib/subtree/test.sh
---
It's a nasty formatting only patch and I won't be surprised or too
dissappiointed
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 263ea9f..aaee6ae 100755
--- a/contrib/subtree/git-subtree.sh
+++
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index aaee6ae..fb6f044 100755
--- a/contrib/subtree/git-subtree.sh
+++
On 10/03/13 17:48, Kevin Bracey wrote:
Previously, the command help and the option -h behaved differently
depending on whether a command was specified or not. Old user interface:
Commands with no defaults show usage: git git CMD
To specifically request usage:git help git
I noticed that git archive will barf when the root tree is empty.
Instead, it should probably return an empty archive. I doubt many people
really care about this corner case in practice, but it seems like we
should handle it more gracefully (and it's an easy fix).
It came to my attention because
We set up the $GIT_UNZIP variable and lazy prereq in
multiple places (and the next patch is about to add another
one). Let's factor it out to avoid repeating ourselves.
Signed-off-by: Jeff King p...@peff.net
---
t/t0024-crlf-archive.sh | 6 --
t/t5003-archive-zip.sh | 6 --
git-archive relies on get_pathspec to convert its argv into
a list of pathspecs. When get_pathspec is given an empty
argv list, it returns a single pathspec, the empty string,
to indicate that everything matches. When we feed this to
our path_exists function, we typically see that the pathspec
Kevin Bracey ke...@bracey.fi writes:
Previously, the command help and the option -h behaved differently
depending on whether a command was specified or not. Old user interface:
Commands with no defaults show usage: git git CMD
To specifically request usage:git help git
Paul Campbell pcampb...@kemitix.net writes:
@@ -721,4 +722,31 @@ cmd_push()
fi
}
+cmd_from-submodule()
+{
I know contrib/subtree does not work with anything other than bash,
and bash may accept this as a valid function name, but if you can
avoid it easily I would prefer not to see
Paul Campbell pcampb...@kemitix.net writes:
From: Matt Hoffman matt.hoff...@quantumretail.com
The repository and branch of a subtree added with the add command is
stored in the .gittrees file.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
---
contrib/subtree/git-subtree.sh | 8
From: bibendi bibe...@bk.ru
Look in the config file .gittrees for a default repository and
refspec or commit when they are not provided on the command line.
Uses the .gittrees config file in a similar way to how git-submodule
uses the .gitmodules file.
What the patch does can be read from
Paul Campbell pcampb...@kemitix.net writes:
From: bibendi bibe...@bk.ru
For each subtree listed in .gittrees perform a push or a pull.
Signed-off-by: Paul Campbell pcampb...@kemitix.net
Conflicts:
contrib/subtree/git-subtree.sh
The Conflicts: part is totally irrelevant. Please
On Sun, Mar 10, 2013 at 12:45:43PM +0100, Bernhard Posselt wrote:
valgrind -q --trace-children=yes --log-file=/tmp/valgrind.out \
git pull --rebase https://github.com/Raydiation/core
The log file was empty and it seemed to apply everything nice when
running valgrind. When i tried to
Jeff King p...@peff.net writes:
On Sun, Mar 10, 2013 at 09:31:24PM -0400, Jeff King wrote:
I noticed that git archive will barf when the root tree is empty.
[...]
I didn't bother even looking at empty subtrees. AFAIK, git should never
produce them (it omits the tree entirely if there is no
63 matches
Mail list logo