| From | Subject | Date |
|---|---|---|
| Martin | remote does not support deleting refs
Hi,
I tried to setup a central git repository. Access is via ssh.
How do I delete a remote branch? If I try it using
> git branch -d -r origin/testbranch
> git push origin :refs/heads/testbranch
I get the error
To ssh://myserver.com/my/path/to/repository
! [rejected] testbranch (remote does not support deleting refs)
error: failed to push some refs to
'ssh://myserver.com/my/path/to/repository'
So how do I setup my remote repository to allow deleting remote branches?
Than...
| Jul 5, 5:22 pm 2008 |
| Dave Jones | git-clone --quiet broken?
The server I run various git snapshots on recently got upgraded to git 1.5.6,
and I started getting a lot more mail from cron than usual.
It seems that passing -q to git-clone at some point changed from 'silent'
to 'slightly less noisy'. Only the difference is so slight that it may
as well be nil..
Here's a normal clone..
Initialize git/.git
Initialized empty Git repository in /home/davej/git-trees/git/.git/
remote: Counting objects: 76925, done.
remote: Compressing objects: 100% (25373/25373),...
| Jul 5, 5:16 pm 2008 |
| Adam Brewster | [PATCH/v3] bundle.c: added --stdin option to git-bundle
Signed-off-by: Adam Brewster <asb@bu.edu>
---
It seems that the consensus is that the other half of my original
patch is no good. You have some pretty good ideas about how to
correctly address the problem I was trying to solve, and I look
forward to seeing them actually implemented.
For now, I offer separately the modification I made to bundle.c to
allow git-bundle to handle the --stdin option. There is no
accompanying change to the documentation because it already implies
that this optio...
| Jul 5, 12:30 pm 2008 |
| Junio C Hamano | Re: [PATCH/v3] bundle.c: added --stdin option to git-bundle
When the change is not about implementation detail (in which case you do
want to name the source file and perhaps even a function name), but about
a new feature that is visible to the end-users of a command, we'd want the
message talk in terms of what the new feature does, not how the new
feature is invoked nor where it is implemented. In other words, something
like these are preferred:
git-bundle: add --stdin
Teach git-bundle to read tips and basis from standard input
and don't say ...
| Jul 5, 2:15 pm 2008 |
| Adam Brewster | [PATCH v4 0/3]
Sorry for the idiotic wrapping problems in my last email.
Previously, I was trying to keep from changing any of the important stuff,
like git-rev-list, but I should know better than cut-and-pasting code.
As requested, I've broken the change into a multiple of patches. First moving
read_revisions_from_stdin to revision.c, next modifying git-bundle to handle
--stdin, and finally a patch adding my old git-basis to contrib.
I think I've corrected all of the style issues you pointed out, and I've ...
| Jul 5, 4:40 pm 2008 |
| Adam Brewster | [PATCH] Move read_revisions_from_stdin from builtin-rev-list...
Some other commands might like to support the --stdin option like
git-rev-list. Since they don't want to depend on builtin-rev-list, the
function has to be somewhere else.
Signed-off-by: Adam Brewster <asb@bu.edu>
---
builtin-rev-list.c | 17 -----------------
revision.c | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 17 deletions(-)
mode change 100644 => 100755 builtin-rev-list.c
mode change 100644 => 100755 revision.c
diff --git a/builtin-rev-list.c b/b...
| Jul 5, 4:40 pm 2008 |
| Miklos Vajna | Re: [PATCH] Move read_revisions_from_stdin from builtin-rev-...
I think it's fine to move such a function, but this is a false commit
message, you can use read_revisions_from_stdin() from builtin-bundle if
Hm? ;-)
| Jul 5, 4:48 pm 2008 |
| Adam Brewster | [PATCH v5]
Apparently I'm dumber than I thought. Here's what they look like without
random and unnecessary mode changes. The patch to add git-basis under contrib
is not affected.
The real reason read_revisions_from_stdin moved to revision.c is because I was
asked to do it that way. If my commit message doesn't accurately describe the
reason for the change, go ahead and edit the message, or let me know what the
real reason is so I can provide a better message.
Adam
--
| Jul 5, 5:26 pm 2008 |
| Adam Brewster | [PATCH] Move read_revisions_from_stdin from builtin-rev-list...
Some other commands might like to support the --stdin option like
git-rev-list. Since they don't want to depend on builtin-rev-list, the
function has to be somewhere else.
Signed-off-by: Adam Brewster <asb@bu.edu>
---
builtin-rev-list.c | 17 -----------------
revision.c | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 11a7eae..b4a2c44 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list...
| Jul 5, 5:26 pm 2008 |
| Adam Brewster | [PATCH] git-bundle: add --stdin
Teach git-bundle to read revision arguments from stdin like git-rev-list.
This patch allows the caller to feed the revision parameters to git-bundle
from its standard input. This way, a script do not have to worry about
limitation of the length of command line.
Documentation/git-bundle.txt says that git-bundle takes arguments acceptable
to git-rev-list. Obviously some arguments that git-rev-list handles don't
make sense for git-bundle (e.g. --bisect) but --stdin is pretty reasonable.
Signed-o...
| Jul 5, 5:26 pm 2008 |
| Adam Brewster | [PATCH] git-bundle: add --stdin
Teach git-bundle to read revision arguments from stdin like git-rev-list.
This patch allows the caller to feed the revision parameters to git-bundle
from its standard input. This way, a script do not have to worry about
limitation of the length of command line.
Documentation/git-bundle.txt says that git-bundle takes arguments acceptable
to git-rev-list. Obviously some arguments that git-rev-list handles don't
make sense for git-bundle (e.g. --bisect) but --stdin is pretty reasonable.
Signed-o...
| Jul 5, 4:40 pm 2008 |
| Adam Brewster | [PATCH] Add git-basis.perl to contrib directory
Git-basis is a perl script that remembers bases for use by git-bundle.
This script shouldn't be needed because git-push and git-remote should do this
kind of work. Unfortunately they currently don't so some might find this
script useful.
Signed-off-by: Adam Brewster <asb@bu.edu>
---
contrib/basis/git-basis.perl | 77 ++++++++++++++++++++++++++++++++++++
contrib/basis/git-basis.txt | 90 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 167 insertions(+), 0 deletions(-)
c...
| Jul 5, 4:40 pm 2008 |
| Jakub Narebski | Re: [PATCH/v3] bundle.c: added --stdin option to git-bundle
It is not that the other half is "no good", it is rather that there
is no consensus how and in what way it should be implemented; be
it separate git-bases command, git-bundle--bases helper script, or
incorporated in git-bundle code; should it be written in Perl or
as shell script (only in case of git-bases or git-bundle--bases),
or should it be written in C.
Adding some documentation, with example usage (example "workflows")
would help adding git-bases to git core... perhaps at start send
That...
| Jul 5, 12:54 pm 2008 |
| Miklos Vajna | [RFC/PATCH] Fix t7601-merge-pull-config.sh on AIX
The test failed on AIX (and likely other OS, such as apparently OSX)
where wc -l outputs whitespace.
Also, avoid unnecessary eval in conflict_count().
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
Changed.
Mike, could you please confirm that this solves your problem as well?
t/t7601-merge-pull-config.sh | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/t/t7601-merge-pull-config.sh b/t/t7601-merge-pull-config.sh
index 32585f8..95b...
| Jul 5, 10:23 am 2008 |
| Johannes Schindelin | About -X<option>
Hi,
the -X<option> options are not really easy to convert to parseopt. This
is only one indication that the interface can be improved.
Another one: you are more likely wanting to pass backend-_specific_
options to git-merge.
So, how about using this syntax instead?
git pull -s recursive,theirs
i.e. strategy terms consist of the strategy name, optionally followed by a
comma separated list of backend options.
Hmm?
Ciao,
Dscho
--
| Jul 5, 8:57 am 2008 |
| Miklos Vajna | Re: About -X<option>
On Sat, Jul 05, 2008 at 02:57:12PM +0200, Johannes Schindelin <Johannes.Sch=
As a user I would think that it tells git-merge to first try 'recursive'
then 'theirs'.
Of course you can still say that users should read the documentation,
but... ;-)
| Jul 5, 9:32 am 2008 |
| Pieter de Bie | Re: About -X<option>
I agree with this. Perhaps there's an easy fix: how about a colon?
git pull -s recursive:theirs
might be more intuitive?
--
| Jul 5, 9:48 am 2008 |
| Junio C Hamano | Re: About -X<option>
How would you do the equivalent of
git pull -s recursive -Xsubtree="My Playpen/" -Xours
with the syntax?
Note that the current scripted "pull" and "merge" has a limitation that it
does not allow $IFS in -X<option> but that is not a designed-in limitation
but purely comes from a lazy implementation .
Also I do not see why -X<option> is not easy with parseopt() as Dscho
claimed in the original message in this thread...
--
| Jul 5, 1:40 pm 2008 |
| Nikolaus Schulz | [PATCH] Documentation: be precise about which date --pretty ...
This makes it explicit that the --pretty formats 'medium' and 'email' use the
author date (and ignore the committer date).
---
Documentation/pretty-formats.txt | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index ec37555..69e6d2f 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -30,7 +30,7 @@ This is designed to be as compact as possible.
commit <s...
| Jul 4, 8:00 pm 2008 |
| Edward Z. Yang | Git, merging, and News/Relnotes files
As a policy on a project that I manage, almost every commit warrants a
change to our NEWS (changelog) file, which end-users can browse to get
an in-depth idea of the changes that have happened from the last
release. If it's an added feature, the changelog includes a description
of how to use it; if it's a fixed bug, it briefly describes what
happened. Internal changes may or may not get added, depending on the
visibility of the APIs affected.
Something that I've noticed recently, as we've started m...
| Jul 5, 3:24 am 2008 |
| Linus Torvalds | Re: Git, merging, and News/Relnotes files
I don't think anybody really _uses_ the functionality, but git does have
the capability to specify special merge drivers based on filenames.
So you can
(a) create a merge strategy that automaticaly does what you want. There's
a built-in driver called "union" that may or may not work for your
use case.
See "Defining a custom merge driver" in "man gitattributes" for more
details about this.
(b) Say which files you want to merge with this driver, by having
...
| Jul 5, 2:38 pm 2008 |
| Edward Z. Yang | Re: Git, merging, and News/Relnotes files
Sounds like a good first-step. It's very unlikely that we're going to
bother writing our own merge strategy for the NEWS file, so if union
ends up being more trouble than its worth, we'll probably end sticking
with manual merges.
Pieter also suggested (for some reason, I don't see the post on this
list) the git-merge-changelog driver from Gnu Savannah. Unfortunately,
the log format is a little different from ours (entries are sorted into
BC-incompatible, features, bugfixes and internal changes), ...
| Jul 5, 3:07 pm 2008 |
| Linus Torvalds | Re: Git, merging, and News/Relnotes files
Well, I personally think ChangeLog files are a total waste of time. You're
much better off autogenerating those from the real logs, I think.
[ Although in all honesty, I also think we could improve on our reporting
tools, and have ways to perhaps highlight big or important changes some
way ]
But a NEWS file that actually talks about new features is a different
thing. It can make lots of sense to maintain something like that, so I
wouldn't suggest canning it if it works for you. I'm...
| Jul 5, 4:03 pm 2008 |
| Brian Hetro | [PATCH 0/5] git_config_string janitorial conversions.
These patches are related to the git_config_string "janitorial" work.
There may be more cleanup possible, but these are the straightforward
changes.
Brian Hetro (5):
builtin-commit.c: Use 'git_config_string' to get 'commit.template'
builtin-log.c: Use 'git_config_string' to get 'format.subjectprefix'
and 'format.suffix'
convert.c: Use 'git_config_string' to get 'smudge' and 'clean'
diff.c: Use 'git_config_string' to get 'diff.external'
http.c: Use 'git_config_string' to clean up S...
| Jul 5, 1:24 am 2008 |
| Brian Hetro | [PATCH 1/5] builtin-commit.c: Use 'git_config_string' to get...
Signed-off-by: Brian Hetro <whee@smaertness.net>
---
builtin-commit.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index e3ad38b..745c11e 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -45,7 +45,8 @@ static enum {
COMMIT_PARTIAL,
} commit_style;
-static char *logfile, *force_author, *template_file;
+static char *logfile, *force_author;
+static const char *template_file;
static char *edit_message, ...
| Jul 5, 1:24 am 2008 |
| Brian Hetro | [PATCH 2/5] builtin-log.c: Use 'git_config_string' to get 'f...
Signed-off-by: Brian Hetro <whee@smaertness.net>
---
builtin-log.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 9979e37..430d876 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -234,12 +234,8 @@ static int git_log_config(const char *var, const char *value, void *cb)
{
if (!strcmp(var, "format.pretty"))
return git_config_string(&fmt_pretty, var, value);
- if (!strcmp(var, "format.subjectprefix")) {...
| Jul 5, 1:24 am 2008 |
| Brian Hetro | [PATCH 3/5] convert.c: Use 'git_config_string' to get 'smudg...
Signed-off-by: Brian Hetro <whee@smaertness.net>
---
convert.c | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/convert.c b/convert.c
index 1c66844..352b69d 100644
--- a/convert.c
+++ b/convert.c
@@ -319,8 +319,8 @@ static int apply_filter(const char *path, const char *src, size_t len,
static struct convert_driver {
const char *name;
struct convert_driver *next;
- char *smudge;
- char *clean;
+ const char *smudge;
+ const char *cle...
| Jul 5, 1:24 am 2008 |
| Brian Hetro | [PATCH 4/5] diff.c: Use 'git_config_string' to get 'diff.ext...
Signed-off-by: Brian Hetro <whee@smaertness.net>
---
diff.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/diff.c b/diff.c
index 803fbba..6a39b39 100644
--- a/diff.c
+++ b/diff.c
@@ -153,12 +153,8 @@ int git_diff_ui_config(const char *var, const char *value, void *cb)
diff_auto_refresh_index = git_config_bool(var, value);
return 0;
}
- if (!strcmp(var, "diff.external")) {
- if (!value)
- return config_error_nonbool(var);
- external_diff_cmd...
| Jul 5, 1:24 am 2008 |
| Brian Hetro | [PATCH 5/5] http.c: Use 'git_config_string' to clean up SSL ...
Signed-off-by: Brian Hetro <whee@smaertness.net>
---
http.c | 36 ++++++++++++------------------------
1 files changed, 12 insertions(+), 24 deletions(-)
diff --git a/http.c b/http.c
index 105dc93..c22adcc 100644
--- a/http.c
+++ b/http.c
@@ -13,14 +13,14 @@ static CURL *curl_default;
char curl_errorstr[CURL_ERROR_SIZE];
static int curl_ssl_verify = -1;
-static char *ssl_cert = NULL;
+static const char *ssl_cert = NULL;
#if LIBCURL_VERSION_NUM >= 0x070902
-static char *ssl_...
| Jul 5, 1:24 am 2008 |
| Matthew Ogilvie | [PATCH v2] Documentation cvs: Clarify when a bare repository...
New users sometimes import a project and then immediately
try to use the imported repository as a central shared repository.
This provides pointers about setting up a bare repository for that
in the parts of the documentation dealing with CVS migration.
Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net>
---
I sent an earlier version of this patch about two weeks ago, but never
got any feedback about it. This version rewords a couple of things
and expands the commit message a littl...
| Jul 5, 12:43 am 2008 |
| Miklos Vajna | [PATCH] Move 'stupid' merge strategy to contrib.
As pointed out by Linus, this strategy tries to take the best merge
base, but 'recursive' just does it better. If one needs something more
than 'resolve' then he/she should really use 'recursive' and not
'stupid'.
Given that it may still serve as a good example, don't remove it, just
move it to contrib/examples.
---
Here is one.
.gitignore | 1 -
Makefile | 3 +-
contrib/examples/git-merge-stupid.sh | 80 +++++++++++++++++++++++...
| Jul 5, 10:43 am 2008 |
| Miklos Vajna | [PATCH] Move 'stupid' merge strategy to contrib.
As pointed out by Linus, this strategy tries to take the best merge
base, but 'recursive' just does it better. If one needs something more
than 'resolve' then he/she should really use 'recursive' and not
'stupid'.
Given that it may still serve as a good example, don't remove it, just
move it to contrib/examples.
---
Oops, I forgot -M with format-patch.
.gitignore | 1 -
Makefile | 3 +--
.../examples/g...
| Jul 5, 5:00 pm 2008 |
| Ramsay Jones | Re: "make test" works again (sort-of) on cygwin.
Ah, yes... I am a "Computer administator" aren't I ;-) I totally forgot!
Hmm, but is that really the reason for these failures? After all, (referring
to the example you snipped) the permissions are respected for creating
files in the directory, just not directories. Is the "root" user on
windows only selectively omnipotent?
ATB,
Ramsay Jones
--
| Jul 5, 4:09 pm 2008 |
| Ramsay Jones | Re: [PATCH/RFC] Fix some warnings (on cygwin) to allow -Werror
Yes, I had something similar at one point (but not in compat).
However, not all of these warnings are solved by the above.
For example, the changes to builtin-fast-export.c, builtin-pack-objects.c,
and pack-check.c do not involve ntohl() at all. (some hunks in other
files do not involve ntohl() either).
When the PRIu32 macro idea was suggested (I think it was Simon 'corecode' Schubert
who first mentioned it), I thought it would look so ugly, no one would
agree to such a patch... Having implement...
| Jul 5, 4:56 pm 2008 |
| Ramsay Jones | Re: [PATCH/RFC] Fix some warnings (on cygwin) to allow -Werror
Yes, I had the same worry, since I did not know which system(s) required
the above #ifdef and, perhaps more important, why. Having said that, I
suspect (hope?) that the affected system(s) are somewhat rare. I guess
it would not be long before someone complained otherwise...
[Note: I can't just blame the above #ifdef because I don't have a real
Yes, otherwise:
builtin-pack-objects.c: In function `prepare_pack':
builtin-pack-objects.c:1760: warning: passing arg 2 of `find_deltas' from incompa...
| Jul 5, 4:35 pm 2008 |
| Junio C Hamano | Re: [PATCH] git daemon: avoid calling syslog() from a signal...
So you will check every 1ms to see if there are new dead children, but why
is this necessary?
--
| Jul 5, 3:34 am 2008 |
| Johannes Schindelin | Re: [PATCH] git daemon: avoid calling syslog() from a signal...
Hi,
This comes from me not reading the man page for poll() properly. Of
course, I want to check every second: syslog timestamps the messages with
a resolution of 1 second, AFAIR, or at least some of them do.
So if you could just squash in this patch, that would be smashing:
-- snipsnap --
@@ -945,8 +945,8 @@ static int service_loop(int socknum, int *socklist)
for (;;) {
int i;
- i = poll(pfd, socknum, 1);
+ i = poll(pfd, socknum, 1000);
if (i < 0) {
if (errno != EI...
| Jul 5, 6:05 am 2008 |
| Junio C Hamano | Re: [PATCH] git daemon: avoid calling syslog() from a signal...
Hmm.
The question was not about the millisecond typo, but about why time-out at
all.
We would need to somehow break out of poll() after handling the SIGCHLD
signal and I guess timing the syscall out would be the most obvious way,
but somehow it felt awkward.
Another way would be to set up a pipe to ourself that is included in the
poll() and write a byte to the pipe from the signal handler.
--
| Jul 5, 1:26 pm 2008 |
| Karl | Re: Can I remove stg sync --undo ?
My guess is that conflicts of the first type would work out of the box
(i.e. they'd get an extra log entry) while conflicts of the second
type would not.
With just "stg undo" (or reset or redo), you get the usual
new-infrastructure check about dirty index and working tree (the whole
index must be clean, and the parts of the worktree we need to touch
must be clean). Which prevents you from undoing a conflicting push,
for example.
With the --hard flag, any uncleanliness in index or worktree si...
| Jul 5, 4:33 am 2008 |
| Alex Riesen | Re: git sequencer prototype
There is not a huge lot of possible meanings of "seq" in the given
context. Somehow I find it hard to believe someone will be confused by
a backend command with a short name "seq" (seq-uence-something?)
It'll make the lines shorter, less need to wrap them.
BTW, what does "am" (git am) mean?
--
| Jul 5, 4:13 am 2008 |
| Johannes Schindelin | Re: git sequencer prototype
Hi,
It might be a bit confusing, since "seq" _produces_ sequences, and
"sequencer" is kind of an assembly line, getting commits in a sequence and
By that reasoning, we should have git-a, git-b, ... but that would not
It means "applymbox", but that name was already taken. And "am" turned
out _not_ to replace "applymbox" right away as was expected, so it is a
bit of unfortunate history.
Ciao,
Dscho
--
| Jul 5, 6:13 am 2008 |
| Thomas Adam | Re: git sequencer prototype
I always thought of it as "apply mbox".
-- Thomas Adam
--
| Jul 5, 6:12 am 2008 |
| Stephan Beyer | [PATCH v2 1/4] Add git-sequencer shell prototype
git sequencer is planned as a backend for user scripts
that execute a sequence of git instructions and perhaps
need manual intervention, for example git-rebase or git-am.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
Hi,
this should now contain your suggestions (where I posted interdiffs)
and some further bugfixes of bugs I stumbled across.
(If you prefer an inter...
| Jul 5, 12:58 pm 2008 |
| Stephan Beyer | [PATCH v2 2/4] Add git-sequencer prototype documentation
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
This contains some feedback of Jakub.
Documentation/git-sequencer.txt | 387 +++++++++++++++++++++++++++++++++++++++
1 files changed, 387 insertions(+), 0 deletions(-)
create mode 100644 Documentation/git-sequencer.txt
diff --git a/Documentation/git-sequencer.txt b/Documentation/git-sequencer.txt
new file mode 100644...
| Jul 5, 1:00 pm 2008 |
| Stephan Beyer | Re: [RFC/PATCH 3/4] Add git-sequencer test suite (t3350)
Hi,
I've just noticed that those tag names:
+ git tag A &&
+ git tag B &&
+ git tag C &&
+ git tag D &&
+ git tag E &&
+ git tag F &&
+ git tag I &&
+ref refs/tags/CE
are perhaps a bad idea, because they could also be an abbreviated SHA1.
As it seems, git does not think this is ambiguous, since the exact tag
name exists.
So it could make sense to add a non-[0-9A-Fa-f] prefix, but it does not
seem to be necessary. Hmmm, ...
| Jul 5, 1:31 pm 2008 |
| Junio C Hamano | Re: [RFC/PATCH 3/4] Add git-sequencer test suite (t3350)
I do not think we take a single letter abbrev so it should be fine.
--
| Jul 5, 2:16 pm 2008 |
| Miklos Vajna | Re: [PATCH 04/15] Add new test to ensure git-merge handles p...
On Fri, Jul 04, 2008 at 05:34:05PM +0100, Mike Ralphson <mike.ralphson@gmai=
At least it does not break the test for me on Linux. But haven't this
cause you problems in git-merge.sh? I copied this code chunk from
See above, but sure, we can.
| Jul 4, 8:26 pm 2008 |
| Miklos Vajna | [PATCH] Fix t7601-merge-pull-config.sh on AIX
The test failed on AIX (and likely other OS, such as apparently OSX)
where wc -l outputs whitespace.
Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
Here is the same, with backticks avoided, and with a proper commit
message.
t/t7601-merge-pull-config.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t7601-merge-pull-config.sh b/t/t7601-merge-pull-config.sh
index 32585f8..12f71ad 100755
---...
| Jul 4, 8:32 pm 2008 |
| Junio C Hamano | Re: [PATCH] Fix t7601-merge-pull-config.sh on AIX
In any case, this feels like an unnecessary use of eval. The call site
you have look like this:
conflict_count resolve_count
but it is more natural if you are programming in shell to call it like:
resolve_count=$(count_conflicts)
and it is more natural to write count_conflicts like this:
count_conflicts () {
{
git diff-files --name-only --diff-filter=U
git ls-files --unmerged
} | wc -l
}
But I am puzzled about t...
| Jul 4, 9:49 pm 2008 |
| previous day | today | next day |
|---|---|---|
| July 4, 2008 | July 5, 2008 | July 6, 2008 |
