When we start a pager, we set GIT_PAGER_IN_USE=1 in the
environment. This lets sub-processes know that even though
isatty(1) is not true, it is because it is connected to a
pager (and we should still turn on human-readable niceties
like auto-color).
Unfortunately, this is too inclusive for scripts
On Sun, Aug 09, 2015 at 07:42:38PM -0400, Jeff King wrote:
> It looks like the use of a pager is fooling our "should we colorize the
> diff" check when generating the patches. Usually we check isatty(1) to
> see if we should use color, so "git format-patch >patches" does the
> right thing. But if
This function basically reimplements git_env_bool (because
it predates it). Let's reuse that helper, which is shorter
and avoids repeating a string literal.
Signed-off-by: Jeff King
---
pager.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pager.c b/pager.c
index 070dc11
On 06/10/2015 07:55 PM, Junio C Hamano wrote:
> Michael Haggerty writes:
>
>> Allow an existing file to be registered with the tempfile-handling
>> infrastructure; in particular, arrange for it to be deleted on program
>> exit.
>>
>> Signed-off-by: Michael Haggerty
>> ---
>
> Hmph. Where does
On 06/10/2015 07:48 PM, Junio C Hamano wrote:
> Michael Haggerty writes:
>
>> Add several functions for creating temporary files with
>> automatically-generated names, analogous to mkstemps(), but also
>> arranging for the files to be deleted on program exit.
>>
>> The functions are named accordi
On Mon, Aug 03, 2015 at 05:21:43PM +0200, Per Cederqvist wrote:
> If you run:
>
> git config pager.pull true
>
> in the hope of getting the output of "git pull" via a pager, you are
> in for a surpise the next time you run "git pull --rebase" and it has
> to rebase your work. It will fail w
On Mon, Aug 03, 2015 at 01:28:05PM +, Dror Livne wrote:
> I have noticed that when cloning a repository, I get a
> refs/remotes/origin/HEAD symbolic ref.
>
> On the other hand, when fetching a new remote, the remote HEAD is not set by
> git-fetch (but can be added later by `git remote set-hea
On 2015-08-08 07.58, Torsten Bögershausen wrote:
> On 2015-08-07 18.32, Benkstein, Frank wrote:
>> Hello,
>>
>> I am working working on Linux and am examining code in a git repository I do
>> not know much about. I am only looking at files, not changing anything. On
>> some files in the repositor
On Wed, Aug 5, 2015 at 3:17 AM, Jan Viktorin wrote:
> Do I understand well that you are complaining about too
> narrow commmit message?
Yes, I'm a complainer. ;-) It's minor, though, not a big deal, and
certainly not worth a re-roll if that was the only issue. In fact,
other than the undesirable
On Sun, Aug 9, 2015 at 1:19 PM, Eric Sunshine wrote:
> On Sun, Aug 2, 2015 at 2:57 PM, Eric Sunshine wrote:
>> On Sun, Aug 2, 2015 at 12:42 PM, Jan Viktorin
>> wrote:
>>> @@ -1136,6 +1141,10 @@ sub smtp_auth_maybe {
>>> Authen::SASL->import(qw(Perl));
>>> };
>>>
>>> +
On Sun, Aug 2, 2015 at 2:57 PM, Eric Sunshine wrote:
> On Sun, Aug 2, 2015 at 12:42 PM, Jan Viktorin wrote:
>> @@ -1136,6 +1141,10 @@ sub smtp_auth_maybe {
>> Authen::SASL->import(qw(Perl));
>> };
>>
>> + if($smtp_auth !~ /^(\b[A-Z0-9-_]{1,20}\s*)*$/) {
>> +
On 09/08/2015 10:01, Johannes Schindelin wrote:
On 2015-08-09 04:01, Adam Dinwoodie wrote:
I do not see any difference between the situation here and the situation
for MinGW, which is fundamentally a Cygwin fork, but which already has
this build option set for it in config.mak.uname.
This is in
Hello folks,
during the configuration of git, client side, to sign all commit I used:
git config --global commit.gpgsign "1"
Since at push time I use:
git push --signed
I'm wondering if there is a git config option which put something in the
config file and avoid to type --signed.
If there
From: Karthik Nayak
Implement the '--format' option provided by 'ref-filter'.
This lets the user list tags as per desired format similar
to the implementation in 'git for-each-ref'.
Add tests and documentation for the same.
Mentored-by: Christian Couder
Mentored-by: Matthieu Moy
Signed-off-by
From: Karthik Nayak
Using 'ref-filter' APIs implement the '--merged' and '--no-merged'
options into 'tag.c'. The '--merged' option lets the user to only
list tags merged into the named commit. The '--no-merged' option
lets the user to only list tags not merged into the named commit.
If no object
From: Karthik Nayak
Make 'tag.c' use 'ref-filter' APIs for iterating through refs, sorting
and printing of refs. This removes most of the code used in 'tag.c'
replacing it with calls to the 'ref-filter' library.
Make 'tag.c' use the 'filter_refs()' function provided by 'ref-filter'
to filter out
From: Karthik Nayak
Make 'tag.c' use 'ref-filter' data structures and make changes to
support the new data structures. This is a part of the process
of porting 'tag.c' to use 'ref-filter' APIs.
This is a temporary step before porting 'tag.c' to use 'ref-filter'
completely. As this is a temporary
From: Karthik Nayak
In 'tag.c' we can print N lines from the annotation of the tag using
the '-n' option. Copy code from 'tag.c' to 'ref-filter' and
modify 'ref-filter' to support printing of N lines from the annotation
of tags.
Mentored-by: Christian Couder
Mentored-by: Matthieu Moy
Signed-of
From: Karthik Nayak
Add a functions called 'for_each_tag_ref_fullpath()' to refs.{c,h}
which iterates through each tag ref without trimming the path.
Add an option in 'filter_refs()' to use 'for_each_tag_ref_fullpath()'
and filter refs. This type checking is done by adding a
'FILTER_REFS_TAGS' i
From: Karthik Nayak
Since 'ref-filter' only has an option to match path names add an
option for plain fnmatch pattern-matching.
This is to support the pattern matching options which are used in `git
tag -l` and `git branch -l` where we can match patterns like `git tag
-l foo*` which would match
Add strbuf_utf8_align() which will align a given string into a strbuf
as per given align_type and width. If the width is greater than the
string length then no alignment is performed.
Helped-by: Eric Sunshine
Mentored-by: Christian Couder
Mentored-by: Matthieu Moy
Signed-off-by: Karthik Nayak
Implement an `align` atom which left-, middle-, or right-aligns the
content between %(align:..) and %(end).
It is followed by `:,`, where the `` is
either left, right or middle and `` is the size of the area
into which the content will be placed. If the content between
%(align:) and %(end) is more
From: Karthik Nayak
Make 'tag.c' use 'ref-filter' data structures and make changes to
support the new data structures. This is a part of the process
of porting 'tag.c' to use 'ref-filter' APIs.
This is a temporary step before porting 'tag.c' to use 'ref-filter'
completely. As this is a temporary
From: Karthik Nayak
Add support to sort by version using the "v:refname" and
"version:refname" option. This is achieved by using the 'versioncmp()'
function as the comparing function for qsort.
This option is included to support sorting by versions in `git tag -l`
which will eventaully be ported
Introduce a ref_formatting_state which will eventually hold the values
of modifier atoms. Implement this within ref-filter.
Mentored-by: Christian Couder
Mentored-by: Matthieu Moy
Signed-off-by: Karthik Nayak
---
ref-filter.c | 65 +++-
1
Introduce a strbuf `output` which will act as a substitute rather than
printing directly to stdout. This will be used for formatting
eventually.
Rename some functions to reflect the changes made:
print_value() -> format_quote_value()
emit()-> append_non_atom()
Mentored-by: Christian Coude
Since atom_value is only required for the internal working of
ref-filter it doesn't belong in the public header.
Helped-by: Eric Sunshine
Mentored-by: Christian Couder
Mentored-by: Matthieu Moy
Signed-off-by: Karthik Nayak
---
ref-filter.c | 5 +
ref-filter.h | 5 +
2 files changed, 6
This is part of my GSoC project to unify git tag -l, git branch -l,
git for-each-ref. This patch series is continued from: Git (next)
https://github.com/git/git/commit/bf5418f49ff0cebc6e5ce04ad1417e1a47c81b61
This series consists of porting tag.c over to using the ref-filter APIs
Version 8 can b
On Sun, Aug 9, 2015 at 1:49 PM, Eric Sunshine wrote:
> On Sun, Aug 9, 2015 at 4:09 AM, Karthik Nayak wrote:
>> On Sun, Aug 9, 2015 at 1:34 PM, Eric Sunshine
>> wrote:
>>> On Sun, Aug 9, 2015 at 2:55 AM, Karthik Nayak wrote:
On Sun, Aug 9, 2015 at 9:12 AM, Eric Sunshine
wrote:
>
Hi Adam,
On 2015-08-09 04:01, Adam Dinwoodie wrote:
> I do not see any difference between the situation here and the situation
> for MinGW, which is fundamentally a Cygwin fork, but which already has
> this build option set for it in config.mak.uname.
This is incorrect. MinGW is distinctly *not*
On Sun, Aug 9, 2015 at 4:09 AM, Karthik Nayak wrote:
> On Sun, Aug 9, 2015 at 1:34 PM, Eric Sunshine wrote:
>> On Sun, Aug 9, 2015 at 2:55 AM, Karthik Nayak wrote:
>>> On Sun, Aug 9, 2015 at 9:12 AM, Eric Sunshine
>>> wrote:
That raises another question. Why are 'struct ref_formatting_sta
On Sun, Aug 9, 2015 at 1:30 PM, Matthieu Moy wrote:
>
>
> Le 8 août 2015 09:03:03 GMT+02:00, Karthik Nayak a
> écrit :
>>On Fri, Aug 7, 2015 at 9:34 AM, Eric Sunshine
>>wrote:
>>> On Wed, Aug 5, 2015 at 2:54 PM, Karthik Nayak
>>wrote:
Implement an `align` atom which will act as a modifier
On Sun, Aug 9, 2015 at 1:34 PM, Eric Sunshine wrote:
> On Sun, Aug 9, 2015 at 2:55 AM, Karthik Nayak wrote:
>> On Sun, Aug 9, 2015 at 9:12 AM, Eric Sunshine
>> wrote:
>>> On Sat, Aug 8, 2015 at 2:35 AM, Karthik Nayak wrote:
On Fri, Aug 7, 2015 at 8:57 AM, Eric Sunshine
wrote:
>
On Sun, Aug 9, 2015 at 2:55 AM, Karthik Nayak wrote:
> On Sun, Aug 9, 2015 at 9:12 AM, Eric Sunshine wrote:
>> On Sat, Aug 8, 2015 at 2:35 AM, Karthik Nayak wrote:
>>> On Fri, Aug 7, 2015 at 8:57 AM, Eric Sunshine
>>> wrote:
On Wed, Aug 5, 2015 at 2:54 PM, Karthik Nayak
wrote:
Le 8 août 2015 09:03:03 GMT+02:00, Karthik Nayak a
écrit :
>On Fri, Aug 7, 2015 at 9:34 AM, Eric Sunshine
>wrote:
>> On Wed, Aug 5, 2015 at 2:54 PM, Karthik Nayak
>wrote:
>>> Implement an `align` atom which will act as a modifier atom and
>align
>>> any string with or without an %(atom) appea
Thanks for the patch. Comments below...
On Sat, Aug 8, 2015 at 8:19 PM, Michael Rappazzo wrote:
> worktree: list operation
Imperative mood:
worktree: add 'list' command
> 'git worktree list' will list the main worktree followed by any linked
> worktrees which were created using 'git worktr
36 matches
Mail list logo