On Fri, Jun 03, 2016 at 04:47:33PM -0700, Junio C Hamano wrote:
> Mike Hommey writes:
>
> > In fact, the parser doesn't even reject the one that is considered
> > invalid (the first).
>
> My question was what the desired behaviour is, and if your "fix"
> gives us that desired outcome.
>From my
Nguyễn Thái Ngọc Duy writes:
> v4
>
> - fixes some documentation bugs in v3
>
> - updates is_main_worktree commit message a bit
>
> - brings back is_worktree_locked() as API with value lazily obtained
>and cached in worktree->lock_reason and fixes a memory leak
>
> - extends basename sea
On Fri, Jun 3, 2016 at 4:52 PM, Duy Nguyen wrote:
> A placeholder can still keep the variable part at the end, e.g.
> "refs/$/head -> pull/123"
I somehow like this very much.
A more typical "their topic went to remote-tracking namespace under 'origin'",
aka
topic -> origin/topic
aka
{
On Sat, Jun 4, 2016 at 3:53 AM, Junio C Hamano wrote:
> By punting on the effort to find a readable format that does not
> repeat the same info twice, we are sending a signal to the users
> that they cannot use a meaningful sentence as the name of a branch
> name; they need to stay within a relati
On Fri, Jun 3, 2016 at 5:19 PM, Eric Sunshine wrote:
>
> My only minor reservation is that it your concise version is still
> subtle with regard to not taking 'linelen' into account. At first
> glance, it looks like a bug that it doesn't consider the logical
> end-of-line, and someone reading the
On Fri, Jun 3, 2016 at 4:42 PM, SZEDER Gábor wrote:
> If a repository contains more than one root commit, then its HEAD
> reflog may contain multiple "creation events", i.e. entries whose
> "from" value is the null sha1. Listing such a reflog currently stops
> prematurely at the first such entry,
On Fri, Jun 03, 2016 at 10:53:27AM -0400, Marc Branchaud wrote:
> On 2016-06-03 07:08 AM, Nguyễn Thái Ngọc Duy wrote:
> > When there are lots of ref updates, each has different name length, this
> > will make it easier to look because the variable part is at the end.
>
> s/look/read/
>
> For the
On Fri, Jun 3, 2016 at 8:02 PM, Eric Sunshine wrote:
> On Fri, Jun 3, 2016 at 7:42 PM, Junio C Hamano wrote:
>> Eric Sunshine writes:
>>
static int is_mboxrd_from(const char *line) {
return starts_with(line + strspn(line, ">"), "From ");
}
On Fri, Jun 3, 2016 at 7:42 PM, Junio C Hamano wrote:
> Eric Sunshine writes:
>
>>> static int is_mboxrd_from(const char *line) {
>>> return starts_with(line + strspn(line, ">"), "From ");
>>> }
>>>
>>> is sufficiently high-level that no longer is scary, hopefully?
On Sat, Jun 4, 2016 at 12:06 AM, Jeff King wrote:
> On Fri, Jun 03, 2016 at 06:08:43PM +0700, Nguyễn Thái Ngọc Duy wrote:
>
>> When there are lots of ref updates, each has different name length, this
>> will make it easier to look because the variable part is at the end.
>
> Is it worth handling m
On Sat, Jun 4, 2016 at 12:00 AM, Junio C Hamano wrote:
>
> Nguyễn Thái Ngọc Duy writes:
>
> > +static int common_suffix_length(const char *a, const char *b)
> > +{
> > + const char *pa = a + strlen(a);
> > + const char *pb = b + strlen(b);
> > + int count = 0;
> > +
> > + while (
Mike Hommey writes:
> In fact, the parser doesn't even reject the one that is considered
> invalid (the first).
My question was what the desired behaviour is, and if your "fix"
gives us that desired outcome.
> (Also, the discussion back then was about
> git://[example.com:123]:/path/to/repo, no
Eric Sunshine writes:
>> static int is_mboxrd_from(const char *line) {
>> return starts_with(line + strspn(line, ">"), "From ");
>> }
>>
>> is sufficiently high-level that no longer is scary, hopefully?
>
> That's nice and concise but unfortunately not useful for t
Michael Haggerty writes:
> On 06/03/2016 11:33 PM, Junio C Hamano wrote:
>> Michael Haggerty writes:
>>
>>> This patch series applies on top of mh/split-under-lock. It can also
>>> be obtained from my GitHub repo [2] as branch "ref-iterators".
>>
>> Ah, that reminds me. What's the doneness of
Since commit 56a1a3ab ("Silence GCC's \"cast of pointer to integer of a
different size\" warning", 26-10-2015), sparse has been issuing a macro
redefinition warning for the SIZE_MAX macro. However, gcc did not issue
any such warning.
After commit 56a1a3ab, in terms of the order of #includes and #
On Fri, Jun 3, 2016 at 3:53 PM, Stefan Beller wrote:
> disadvantages:
> * it's not `done right`, i.e. dealing with gitlinks in read-tree/unpack-tree
>but just another command chained after checkout, so we would do that
>for pull too eventually?
Well one argument against the disadvantage i
On Fri, Jun 03, 2016 at 08:59:46AM -0700, Junio C Hamano wrote:
> Torsten Bögershausen writes:
>
> > There where 2 comments in the review.
> > The most important thing is that now
> > git://[example.com:123]/path/to/repo is valid, but it shouldn't.
> > This patch fixes it:
> >
> > @@ -673,7 +669,
Greetings
http://cdxdhc.com/minerals.php?coast=ky1mydg4n8s69z
William
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Jun 3, 2016 at 6:36 PM, Junio C Hamano wrote:
> Eric Sunshine writes:
>> On Thu, Jun 2, 2016 at 3:51 AM, Eric Wong wrote:
>>> Eric Wong wrote:
Eric Sunshine wrote:
> On Tue, May 31, 2016 at 3:45 AM, Eric Wong wrote:
> > Eric Sunshine wrote:
> >> I wonder if hand-c
When checking out a new revision in a repo with submodules,
one of the first commands after checkout is `git submodule update`
to make sure the submodules are updated.
I propose to have a switch which when turned on automatically runs
`git submodule update` for you instead of implementing proper
s
Tom Russello writes:
> Hello,
> as `MAN_BOLD_LITERAL` knob is now turned on by default, it is the right time
> to
> make our documentation more consistent.
"is now turned on by default" since when ;-)?
Just kidding; it just happened in my tree a few minutes ago but
the result hasn't been pushe
Eric Sunshine writes:
> On Thu, Jun 2, 2016 at 3:51 AM, Eric Wong wrote:
>> Eric Wong wrote:
>>> Eric Sunshine wrote:
>>> > On Tue, May 31, 2016 at 3:45 AM, Eric Wong wrote:
>>> > > Eric Sunshine wrote:
>>> > >> I wonder if hand-coding, rather than using a regex, could be an
>>> > >> improv
[cc:+junio]
On Thu, Jun 2, 2016 at 3:51 AM, Eric Wong wrote:
> Eric Wong wrote:
>> Eric Sunshine wrote:
>> > On Tue, May 31, 2016 at 3:45 AM, Eric Wong wrote:
>> > > Eric Sunshine wrote:
>> > >> I wonder if hand-coding, rather than using a regex, could be an
>> > >> improvement:
>> > >>
>> >
From: "Junio C Hamano"
"Philip Oakley" writes:
That said, trying to find a good name for that 'third place' is not easy.
It's neither upstream, nor downstream (for Junio - the maintainer special
case - git.git would be his downstream). The me/git repo is like a
ferryman's landing across the o
As a first step, this change configuration variables that where in italic style
to monospace font according to the guideline. It was obtained with
grep '[[:alpha:]]*\.[[:alpha:]]*::$' config.txt | \
sed -e 's/::$//' -e 's/\././' | \
xargs -iP perl -pi -e "s/\'P\'/\`P\`/
Make the guideline text that we want for our documentation clearer.
Signed-off-by: Tom Russello
Signed-off-by: Erwan Mathoniere
Signed-off-by: Samuel Groot
Signed-off-by: Matthieu Moy
---
IMHO, the previous "rule" was not so clear on what we have to do and didn't give
a guideline to whether an
As a first step, this change GIT_* variables that where in
italic style to monospace font according to the guideline. It was obtained
with
perl -pi -e "s/\'(GIT_.*?)\'/\`\1\`/g" *.txt
Signed-off-by: Tom Russello
Signed-off-by: Erwan Mathoniere
Signed-off-by: Samuel Groot
Signed-off-by:
Hello,
as `MAN_BOLD_LITERAL` knob is now turned on by default, it is the right time to
make our documentation more consistent.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majo
On 06/03/2016 11:33 PM, Junio C Hamano wrote:
> Michael Haggerty writes:
>
>> This patch series applies on top of mh/split-under-lock. It can also
>> be obtained from my GitHub repo [2] as branch "ref-iterators".
>
> Ah, that reminds me. What's the doneness of the dependent topic?
If you mean
Michael Haggerty writes:
> This patch series applies on top of mh/split-under-lock. It can also
> be obtained from my GitHub repo [2] as branch "ref-iterators".
Ah, that reminds me. What's the doneness of the dependent topic?
The patches in this series looked all good to me.
> Michael
>
> [1
Am 03.06.2016 um 14:32 schrieb William Duclot:
CSS is widely used, motivating it being included as a built-in pattern.
It must be noted that the word_regex for CSS (i.e. the regex defining
what is a word in the language) does not consider '.' and '#' characters
(in CSS selectors) to be part of t
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 48b37fa..dfce4d1 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1527,7 +1527,8 @@ static
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 26 +++---
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 225e0af..24b7c60 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1987,15 +19
For now it only supports the main reference store.
Signed-off-by: Michael Haggerty
---
refs.c | 7 +++
refs/files-backend.c | 6 --
refs/refs-internal.h | 3 +++
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/refs.c b/refs.c
index 22837f4..2d84c5c 100644
--
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 57f1965..9307fa0 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1416,13 +1416,11 @@ static
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 24b7c60..8d3cf96 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -3405,7 +3405,8 @@ static int spli
We want ref_stores to be polymorphic, so invent a base class of which
files_ref_store is a derived class. For now there is a one-to-one
relationship between ref_stores and submodules.
Signed-off-by: Michael Haggerty
---
refs.c | 91 ++
refs/files-backend.c
From: David Turner
Alternate refs backends might not need the refs/heads directory and so
on, so we make ref db initialization part of the backend.
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michael Haggerty
---
builtin/init-db.c| 21 +++--
r
From: David Turner
This removes the last caller of function get_files_ref_store(), so
remove it.
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michael Haggerty
---
refs.c | 7 +++
refs/files-backend.c | 24 ++--
refs/refs-inte
Signed-off-by: Michael Haggerty
---
refs.c | 9 +
refs/files-backend.c | 7 ++-
refs/refs-internal.h | 5 +
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/refs.c b/refs.c
index f4f5f32..22837f4 100644
--- a/refs.c
+++ b/refs.c
@@ -1425,6 +1425,15 @@ i
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index dfce4d1..bc7d250 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -2578,12 +2578,14 @@ stati
From: David Turner
Signed-off-by: Ronnie Sahlberg
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michael Haggerty
---
refs.c | 8
refs/files-backend.c | 8 +---
refs/refs-internal.h | 1 +
3 files changed, 14 insertions(+), 3 deletions(-)
From: David Turner
Instead of including a files-backend-specific struct ref_lock, change
the generic ref_update struct to include a void pointer that backends
can use for their own arbitrary data.
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michael Haggerty
---
r
Signed-off-by: Michael Haggerty
---
refs.c | 2 +-
refs/files-backend.c | 3 ++-
refs/refs-internal.h | 24
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/refs.c b/refs.c
index bda8fc1..d1ab20b 100644
--- a/refs.c
+++ b/refs.c
@@ -1157,7
resolve_ref_recursively() can handle references in arbitrary files
reference stores, so use it to resolve "gitlink" (i.e., submodule)
references. Aside from removing redundant code, this allows submodule
lookups to benefit from the much more robust code that we use for
reading non-submodule referen
Signed-off-by: Michael Haggerty
---
refs.c | 11 ++-
refs.h | 9 +
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/refs.c b/refs.c
index 7a8ef6d..c39f85a 100644
--- a/refs.c
+++ b/refs.c
@@ -1299,22 +1299,23 @@ const char *resolve_ref_unsafe(const char *refname, i
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 5bfa912..57f1965 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1407,11 +1407,9 @@ int
From: David Turner
In the file-based backend, the reflog piggybacks on the ref lock.
Since other backends won't have the same sort of ref lock, ref backends
must also handle reflogs.
Signed-off-by: Ronnie Sahlberg
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michae
Signed-off-by: Michael Haggerty
---
refs.c | 7 +++
refs/files-backend.c | 6 --
refs/refs-internal.h | 4
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/refs.c b/refs.c
index 79ef443..f4f5f32 100644
--- a/refs.c
+++ b/refs.c
@@ -1418,6 +1418,13 @@ void
Signed-off-by: Michael Haggerty
---
refs.c | 10 ++
refs/files-backend.c | 14 --
refs/refs-internal.h | 7 +++
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/refs.c b/refs.c
index 1798f66..79ef443 100644
--- a/refs.c
+++ b/refs.c
@@ -1425,3
Now that resolve_packed_ref() can work with an arbitrary
files_ref_store, there is no need to have a separate
resolve_gitlink_packed_ref() function.
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 26 +-
1 file changed, 5 insertions(+), 21 deletions(-)
diff --
Signed-off-by: Michael Haggerty
---
refs.c | 2 +-
refs/files-backend.c | 4 ++--
refs/refs-internal.h | 8
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/refs.c b/refs.c
index 2d84c5c..bda8fc1 100644
--- a/refs.c
+++ b/refs.c
@@ -1157,7 +1157,7 @@ static in
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 91dcfcb..48b37fa 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -2388,14 +2388,14 @@ static
From: David Turner
In the file-based backend, delete_refs has some special optimization
to deal with packed refs. In other backends, we might be able to make
ref deletion faster by putting all deletions into a single
transaction. So we need a special backend function for this.
Signed-off-by: D
From: David Turner
Alternate refs backends might still use files to store per-worktree
refs. So provide a way to iterate over only the per-worktree references
in a ref_store. The other backend can set up a files ref_store and
iterate using the new DO_FOR_EACH_PER_WORKTREE_ONLY flag when iterating
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index bc7d250..225e0af 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -3485,20 +3485,21 @@ static c
From: Ronnie Sahlberg
Add a `struct ref_storage_be` to represent types of reference stores. In
OO notation, this is the class, and will soon hold some class
methods (e.g., a factory to create new ref_store instances) and will
also serve as the vtable for ref_store instances of that type.
As yet,
From: David Turner
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Michael Haggerty
---
refs/refs-internal.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index efe5847..d8a2606 100644
--- a/refs/refs-internal.h
+
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 8ef79c2..5bfa912 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1196,10 +1196,9 @@ static struc
Since the that ref-iterator [1] changes seem to have gotten a positive
reception, let's try to keep up the momentum. I hope I'm not
overloading the review pipeline...
I think all of the groundwork is in place now to virtualize the refs
API. This will open the way to storing refs in ways other than
Add a new function, resolve_ref_recursively(), which is basically like
the old resolve_ref_unsafe() except that it takes a (ref_store *)
argument and also works for submodules.
Re-implement resolve_ref_unsafe() as a thin wrapper around
resolve_ref_recursively().
Signed-off-by: Michael Haggerty
-
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 50bfe97..b54355d 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1333,10 +1333,9 @@ static st
Reference backends will be able to customize this function to implement
reference reading.
Signed-off-by: Michael Haggerty
---
refs.c | 4 ++--
refs/files-backend.c | 14 --
refs/refs-internal.h | 36 +++-
3 files changed, 29 insertions(
And make the function work for submodules.
Signed-off-by: Michael Haggerty
---
refs.c | 4 +++-
refs/files-backend.c | 18 +-
refs/refs-internal.h | 9 ++---
3 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/refs.c b/refs.c
index 904e758..9d36dfe
These functions currently only work in the main repository, so add an
assert_main_repository() check to each function.
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 32
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/refs/files-backen
If we don't have to strip trailing '/' from the submodule path, then
don't allocate and copy the submodule name.
Signed-off-by: Michael Haggerty
---
refs.c | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/refs.c b/refs.c
index 5e0777a..7a8ef6d 100644
---
From: Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg
Signed-off-by: David Turner
Signed-off-by: Junio C Hamano
Signed-off-by: Jeff King
Signed-off-by: Michael Haggerty
---
refs.c | 9 +
refs/files-backend.c | 10 ++
refs/refs-internal.h | 5 +
3 files cha
Move resolve_gitlink_ref() and related functions lower in the file to
avoid the need for forward declarations in the next step.
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 166 +--
1 file changed, 83 insertions(+), 83 deletions(-)
d
Signed-off-by: Michael Haggerty
---
refs/files-backend.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 36bf128..2f9d79a 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1387,7 +1387,7 @@ static int resolv
The greater goal of this patch series is to develop the concept of a
reference store, which is a place that references, their values, and
their reflogs are stored, and to virtualize the reference interface so
that different types of ref_stores can be implemented. We will then, for
example, use ref_
Marc Branchaud writes:
>>> * [new branch] 2nd-index -> pclouds/2nd-index
>>> * [new branch] some-kind-of-long-ref-name
>>> -> pclouds/some-kind-of-long-ref-name
>>> * [new branch] 3nd-index -> pclouds/3nd-index
> ...
> I think aligning it with
If a repository contains more than one root commit, then its HEAD
reflog may contain multiple "creation events", i.e. entries whose
"from" value is the null sha1. Listing such a reflog currently stops
prematurely at the first such entry, even when the reflog still
contains older entries. This can
Stefan Beller writes:
> In our own .gitattributes file we have attributes such as:
>
> *.[ch] whitespace=indent,trail,space
>
> When querying for attributes we want to be able to ask for the exact
> value, i.e.
>
> git ls-files :(attr:whitespace=indent,trail,space)
>
> should work, but th
> after running the command:
>
> git checkout --orphan fuleFix
>
> my HEAD reflog is emptied.
> I would like to have my reflog intact :)
No worries, your reflog is still intact :) It's just the reflog
walker stopping prematurely upon encountering the null sha1 of the new
root commit's reflog en
On 2016-06-03 01:04 PM, Junio C Hamano wrote:
Marc Branchaud writes:
What if we detect when the full line exceeds the terminal width, and
insert a newline after the remote ref and indent the -> to the same
offset as its surrounding lines, like this:
* [new branch] 2nd-index -> pclouds
In our own .gitattributes file we have attributes such as:
*.[ch] whitespace=indent,trail,space
When querying for attributes we want to be able to ask for the exact
value, i.e.
git ls-files :(attr:whitespace=indent,trail,space)
should work, but the commas are used in the attr magic to i
Signed-off-by: Thomas Braun
---
contrib/completion/git-completion.bash | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 3402475..addea89 100644
--- a/contrib/completion/git-completion.bash
changes since v3:
* support short version -u of --untracked-files option
* introduce __git_get_option_value for general usage
* fix style issues
* support order dependent statements like
git status -uno --untracked-files=all
properly
Thomas Braun (3):
completion: factor out untracked file mo
Signed-off-by: Thomas Braun
---
contrib/completion/git-completion.bash | 50 ++
1 file changed, 50 insertions(+)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 4bd17aa..9eff33c 100644
--- a/contrib/completion/gi
This function allows to search the commmand line and config
files for an option, long and short, with mandatory value.
The function would return e.g. for the command line
"git status -uno --untracked-files=all" the result
"all" regardless of the config option.
Signed-off-by: Thomas Braun
---
co
Am 03.06.2016 um 19:54 schrieb Junio C Hamano:
> Jeff King writes:
>
>> I know not everybody will the "natural thing" I claim, and if it were
>> easy to support everywhere, I don't mind doing it. But I suspect
>> (without thinking very hard on it) that it would make those case
>> statements a bit
On Tue, 2016-05-24 at 15:22 -0400, David Turner wrote:
> - Protocol v2: I would like to get a new draft of Stefan's series out
> before I leave, but no promises. It's turned out to be a bit more
> complicated than I expected to support HTTP. At worst, I'll toss my
> WIP on github and send a link
Christian Couder writes:
> This is to replace:
>
> "[PATCH v3 48/49] builtin/apply: move 'lock_file' global into 'struct
> apply_state'"
>
> from the "libify apply and use lib in am, part 1" patch series.
Thanks; will replace the tip 2 patches and requeue.
> diff --git a/builtin/apply.c b/buil
On Fri, 2016-06-03 at 14:33 +0200, Michael Haggerty wrote:
> This is v2 of a patch series to implement iteration over references
> via iterators. Thanks to Ramsay, Eric, Junio, and David for their
> feedback about v1 [1]. I think I have addressed all of the points
> that
> were raised.
In case I d
Jeff King writes:
> I know not everybody will the "natural thing" I claim, and if it were
> easy to support everywhere, I don't mind doing it. But I suspect
> (without thinking very hard on it) that it would make those case
> statements a bit harder to read and maintain.
Oh, I agree with that 10
Jeff King writes:
>> It's a shame that the flag '-' in these ref update lines is not the
>> same in fetch and push (see 1/3). Because git-fetch does not support
>> --porcelain option, maybe it's not too late to change its meaning...
>
> I'd agree with that final "maybe". :)
Yeah, this is purel
On Fri, Jun 3, 2016 at 6:58 PM, Christian Couder
wrote:
> From: Christian Couder
Sorry for this spurious "From:" line.
It looks like send-email added it, and I don't understand why it does it now.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to major
Translate 104 new messages came from git.pot update in f517e50
(l10n: git.pot: v2.9.0 round 1 (104 new, 37 removed)).
Signed-off-by: Ralf Thielow
---
po/de.po | 413 ---
1 file changed, 212 insertions(+), 201 deletions(-)
diff --git a/
On Fri, Jun 03, 2016 at 09:34:00AM -0700, Junio C Hamano wrote:
> Thomas Braun writes:
>
> >>> + if [ -n "$(__git_find_on_cmdline "--ignored")" ]; then
> >>
> >> Same question as the "--untracked-files=no vs -uno" applies here.
> >
> > Is there a short version of --ignored? I co
On Fri, Jun 03, 2016 at 04:32:41PM +0100, Ramsay Jones wrote:
> >>char buf[48];
> >> - int len = snprintf(buf, sizeof(buf), "%s\t%s\n",
> >> + int len = xsnprintf(buf, sizeof(buf), "%s\t%s\n",
> >> report, sha1_to_hex(sha1));
> >>
On Fri, Jun 03, 2016 at 06:08:43PM +0700, Nguyễn Thái Ngọc Duy wrote:
> When there are lots of ref updates, each has different name length, this
> will make it easier to look because the variable part is at the end.
Is it worth handling more complicated cases, where there is a similar
"middle", b
Marc Branchaud writes:
> What if we detect when the full line exceeds the terminal width, and
> insert a newline after the remote ref and indent the -> to the same
> offset as its surrounding lines, like this:
>
> * [new branch] 2nd-index -> pclouds/2nd-index
> * [new branch] some-ki
On Fri, Jun 03, 2016 at 06:08:40PM +0700, Nguyễn Thái Ngọc Duy wrote:
> v2 reformats "abc/common -> def/common" to "{abc -> def}/common"
> instead and fall back to "a -> b" when they have nothing in commmon
> (e.g. "HEAD -> FETCH_HEAD"). We could add an option if a user wants to
> stick with "a ->
Nguyễn Thái Ngọc Duy writes:
> +static int common_suffix_length(const char *a, const char *b)
> +{
> + const char *pa = a + strlen(a);
> + const char *pb = b + strlen(b);
> + int count = 0;
> +
> + while (pa > a && pb > b && pa[-1] == pb[-1]) {
> + pa--;
> +
From: Christian Couder
We cannot have a 'struct lock_file' allocated on the stack, as lockfile.c
keeps a linked list of all created lock_file structures.
Also 'struct apply_state' users might later want the same 'struct lock_file'
instance to be reused by different series of calls to the apply a
From: Christian Couder
To libify the apply functionality the 'newfd' variable should
not be static and global to the file. Let's move it into
'struct apply_state'.
Signed-off-by: Christian Couder
Signed-off-by: Junio C Hamano
---
This is to replace:
[PATCH v3 49/49] builtin/apply: move 'newf
On Fri, Jun 03, 2016 at 06:08:41PM +0700, Nguyễn Thái Ngọc Duy wrote:
> This patch is a copy from git-push.txt, modified a bit because the
> flag '-' means different things in push (delete) and fetch (tag
> update). We probably should unify the documents at some point in
> future.
This is stderr
Nguyễn Thái Ngọc Duy writes:
> This makes it easier to change the formatting later. And it makes sure
> translators cannot mess up format specifiers and break Git.
> ...
> +static void format_display(struct strbuf *display, char code,
> +const char *summary, const char *e
Michael Haggerty writes:
> On 06/01/2016 09:39 PM, Junio C Hamano wrote:
>> ...
> I think I would represent the logical store of a worktree repo as
> follows. First, ...
> ...
>> Up to this point, I am all for your "separate physical stores are
>> composited to give a logical view". I can see ho
Thomas Braun writes:
>>> + if [ -n "$(__git_find_on_cmdline "--ignored")" ]; then
>>
>> Same question as the "--untracked-files=no vs -uno" applies here.
>
> Is there a short version of --ignored? I could not find one in the help,
> and from a look into cmd_status in commit.c I
1 - 100 of 171 matches
Mail list logo