| From | Subject | Date |
|---|---|---|
| Shawn O. Pearce | [PATCH 2/2] Refer users to git-rev-parse for revision sp ...
The revision specification syntax (sometimes referred to as
SHA1-expressions) is accepted almost everywhere in Git by
almost every tool. Unfortunately it is only documented in
git-rev-parse.txt, and most users don't know to look there.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
Documentation/git-cherry-pick.txt | 2 ++
Documentation/git-diff.txt | 3 +++
Documentation/git-format-patch.txt | 4 +++-
Documentation/git-log.txt | 3 +++
...
| Jan 17, 7:08 pm 2007 |
| Shawn O. Pearce | [PATCH 1/2] Document the master@{n} reflog query syntax.
In ab2a1a32 Junio improved the reflog query logic to support
obtaining the n-th prior value of a ref, but this was never
documented in git-rev-parse. Now it is.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
Documentation/git-rev-parse.txt | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 4eaf5a0..7bfbe1b 100644
--- a/Documentation/git-rev-parse.txt
+++ ...
| Jan 17, 7:08 pm 2007 |
| Shawn O. Pearce | Re: [PATCH 1/2] Document the master@{n} reflog query syntax.
Yes. Danngit. Junio, can you hand edit that patch?
--
Shawn.
-
| Jan 17, 7:50 pm 2007 |
| Jim Treadway | Re: [PATCH 1/2] Document the master@{n} reflog query syntax.
I'm guessing that the above was unintentional?
-
| Jan 17, 7:30 pm 2007 |
| Shawn O. Pearce | [PATCH] Document pack .idx file format upgrade strategy.
Way back when Junio developed the 64 bit index topic he came up
with a means of changing the .idx file format so that older Git
clients would recognize that they don't understand the file and
refuse to read it, while newer clients could tell the difference
between the old-style and new-style .idx files. Unfortunately
this wasn't recorded anywhere.
This change documents how we might go about changing the .idx
file format by using a special signature in the first four bytes.
Credit (and ...
| Jan 17, 6:43 pm 2007 |
| Simon 'corecode' Sch ... | [PATCH] Use fixed-size integers for the on-disk pack str ...
Plain integer types without a fixed size can vary between platforms. Even
though all common platforms use 32-bit ints, there is no guarantee that
this won't change at some point. Furthermore, specifying an integer type
with explicit size makes the definition of structures more obvious.
---
pack.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pack.h b/pack.h
index 4814800..8aab5bb 100644
--- a/pack.h
+++ b/pack.h
@@ -10,9 +10,9 @@
#define PACK_VERSION 2
...
| Jan 17, 1:07 am 2007 |
| Johannes Schindelin | Re: [PATCH/POLL] git-format-patch: the default suffix is ...
Hi,
since this is a poll, count me as neutral. I don't care either way.
Ciao,
Dscho
-
| Jan 17, 6:06 pm 2007 |
| Junio C Hamano | [PATCH/POLL] git-format-patch: the default suffix is now ...
Editors often give easier handling of patch files if the
filename ends with .patch, so use it instead of .txt.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
Junio C Hamano <junkio@cox.net> writes:
> "Josh Boyer" <jwboyer@gmail.com> writes:
>
>> On 1/17/07, Junio C Hamano <junkio@cox.net> wrote:
>>
>>> Two minor objections to changing the default are: (1) it's a
>>> change and any change is bad ;-) and (2) the reason I changed it
>>> to .txt before submitting the ...
| Jan 17, 5:06 pm 2007 |
| Junio C Hamano | [PATCH - todo] Changes to e-mailed patch handling in v1.5.0
This applies to the draft v1.5.0 release notes in 'todo' branch and
summarizes the changes my patches to format-patch bring in.
I am neutral about changing the default suffix from .txt to .patch;
comments?
diff --git a/v1.5.0.txt b/v1.5.0.txt
index 2fccf8e..6a9a8d6 100644
--- a/v1.5.0.txt
+++ b/v1.5.0.txt
@@ -268,6 +268,21 @@ Updates in v1.5.0 since v1.4.4 series
excuse us for this very minor one-time inconvenience.
+* e-mailed patches
+
+ - See the above I18n ...
| Jan 17, 4:06 pm 2007 |
| Junio C Hamano | [PATCH] git-format-patch -3
This teaches "git-format-patch" to honor the --max-count
parameter revision traversal machinery takes, so that you can
say "git-format-patch -3" to process the three topmost commits
from the current HEAD (or "git-format-patch -2 topic" to name a
specific branch).
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
* I think this is incompatible with --ignore-if-upstream, which
I haven't bothered to look into yet.
Likes, dislikes?
builtin-log.c | 9 +++++++--
1 files changed, ...
| Jan 17, 2:35 pm 2007 |
| Shawn O. Pearce | Re: [PATCH] Add --summary to git-format-patch by default
This is the right thing to do. format-patch should default to
both --summary and --stat.
--
Shawn.
-
| Jan 17, 6:04 pm 2007 |
| Johannes Schindelin | Re: [PATCH] git-format-patch -3
Hi,
Uhm. What exactly _would_ be upstream?
At the moment, for "--ignore-if-in-upstream" we handle _only_ ranges
(a..b), where we treat the left part as the upstream, so we first parse
all the diffs in b..a, and then ignore all commits in a..b which have an
already-seen diff hash.
However, if we want to do the logical analogue with "-22 HEAD", the
It sure is supported by the principle of least surprise.
Ciao,
Dscho
-
| Jan 17, 6:25 pm 2007 |
| Junio C Hamano | [PATCH] git-format-patch: make --binary on by default
It does not make much sense to generate a patch that cannot be
applied. If --text is specified on the command line it still
takes precedence.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
* I would opt not to make "git am --binary" the default for
now. Even with this change, sending binary patch over e-mail
is unusual as it is harder to review --- I think it makes
sense to error out by default and draw attention from the
person who is applying the patch rather than ...
| Jan 17, 3:41 pm 2007 |
| Junio C Hamano | [PATCH] Add --summary to git-format-patch by default
This adds --summary output in addition to the --stat to the
output from git-format-patch by default.
I think additions, removals and filemode changes are rare but
notable events and always showing it makes sense.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
* An alternative would be to give --summary whenever --stat is
asked for _any_ diff family of commands, which might make
sense but I suspect is going too far. At least format-patch
is a good place to add this since it ...
| Jan 17, 2:51 pm 2007 |
| davidk | Re: [RFC] Add a suffix option to git-format-patch
This is probably the primary reason why I *want* it to be .patch. The
diff-mode in Emacs is really useful, and read-write mode is only a C-x
I rarely edit patches, but it has worked for me.
--
David Kågedal
-
| Jan 17, 11:15 am 2007 |
| Junio C Hamano | Re: [PATCH] sanitize content of README file
I do not think it is a bad idea to make the top-level README
concise and sweet, but this has fallout in Documentation/git.txt
which includes README and makes it into the Discussion section.
The attached patch on top of yours would resurrect it.
---
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 93c7024..9f2d242 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -71,14 +71,11 @@ doc.dep : $(wildcard *.txt) build-docdep.perl
-include doc.dep
...
| Jan 17, 12:39 pm 2007 |
| Nicolas Pitre | [PATCH] sanitize content of README file
Current README content is way too esoteric for someone looking at GIT
for the first time. Instead it should provide a quick summary of what
GIT is with a few pointers to other resources.
The bulk of the previous README content is moved to
Documentation/core-intro.txt.
Signed-of-by: Nicolas Pitre <nico@cam.org>
---
diff --git a/README b/Documentation/core-intro.txt
similarity index 99%
copy from README
copy to Documentation/core-intro.txt
index cee7e43..2bad1a7 100644
--- a/README
+++ ...
| Jan 17, 11:04 am 2007 |
| Josh Boyer | Re: [RFC] Add a suffix option to git-format-patch
I see Junio beat me to it. Excellent :)
josh
-
| Jan 17, 1:20 pm 2007 |
| Josh Boyer | Re: [RFC] Add a suffix option to git-format-patch
On 1/17/07, Junio C Hamano <junkio@cox.net> wrote:
> David K
| Jan 17, 1:18 pm 2007 |
| Junio C Hamano | Jan 17, 10:33 am 2007 | |
| Simon 'corecode' Sch ... | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
printf(1) is part of POSIX/SUSv3, so systems *should* have it.
cheers
simon
--=20
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1 +++=
Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
| Jan 17, 5:02 pm 2007 |
| Horst H. von Brand | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
Julian Phillips <julian@quantumfyre.co.uk> wrote:
It's a builtin in zsh and in ksh, and /not/ in tcsh here (Fedora rawhide)
zsh-4.2.6-3.fc7
ksh-20060214-1.1
tcsh-6.14-13
It might be special configuration, but as they are mentioned in the manpages
I'd guess not.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, ...
| Jan 17, 1:17 pm 2007 |
| Junio C Hamano | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
I am reasonably sure people on Linux land would be fine
regardless of distros, but thanks anyway.
The problematic are less common ones, ranging from (not so less
common) OSX, Solaris to (much less common) AIX that some people
seem to run git on (or at least compile git for).
-
| Jan 17, 10:33 am 2007 |
| Brian Gernhardt | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
At least as far a OS X goes, it's installed on my machine (10.4.8)
as /usr/bin/printf. I don't know if it's part of the Xcode packages,
the "BSD Subsystem", or the core OS but I have a hard time imagining
someone who didn't have them all installed using GIT.
Also, it's man page identifies itself as
"PRINTF(1) BSD General Commands Manual
PRINTF(1)"
so most, if not all, flavors of BSD and BSD-like should be alright.
~~ Brian
-
| Jan 17, 11:00 am 2007 |
| Junio C Hamano | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
A lot of the portability problem we suffered were about the
things that systems *should* have it.
Unfortunately a standard does not matter a whit on its own when
dealing with the real world. That's why I muttered the above
even though I knew POSIX says you should have one.
We use POSIX as one of the yardsticks to see what we should stay
away (i.e. "that is not even in POSIX so let's not use it for
now"), and also how far we are willing to bend over (i.e. "any
reasonable system should have ...
| Jan 17, 5:13 pm 2007 |
| Julian Phillips | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
printf is a bash builtin ... not sure about other shells.
--
Julian
---
A lifetime isn't nearly long enough to figure out what it's all about.
-
| Jan 17, 11:07 am 2007 |
| Andreas Ericsson | Jan 17, 9:57 am 2007 | |
| Johannes Schindelin | Re: [RFC] Add a suffix option to git-format-patch
Hi,
All "patch" programs I know are happy without any massage.
Ciao,
Dscho
-
| Jan 17, 10:05 am 2007 |
| davidk | Re: [RFC] Add a suffix option to git-format-patch
Seconded. I would even prefer .patch to be default, but I guess a
config parameter would help me there.
--
David Kågedal
-
| Jan 17, 8:43 am 2007 |
| Johannes Schindelin | Re: [PATCH] git-reset: make the output as the fetch output
Hi,
[reCc'ing list]
On Wed, 17 Jan 2007, Santi B
| Jan 17, 8:35 am 2007 |
| rene.scharfe | [PATCH] Documentation: a few spelling fixes
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 95bea66..a5051aa 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -83,7 +83,7 @@ git-add git-*.sh::
Interactive mode
----------------
When the command enters the interactive mode, it shows the
-output of the 'status' subcommand, and then goes into ints
+output of the 'status' subcommand, and then goes into its
interactive ...
| Jan 17, 8:32 am 2007 |
| sbejar | Re: [PATCH] git-reset: make the output as the fetch output
[...]
perhaps?
echo "* HEAD: resetted to $commit"
Santi
-
| Jan 17, 6:27 am 2007 |
| Johannes Schindelin | Re: [PATCH] git-reset: make the output as the fetch output
Hi,
IMHO your version is less helpful than the current behaviour: now it
shows the oneline (which your version doesn't), and in most cases you
reset from a dirty state (at least I _exclusively_ use reset in such
situations), where "from..to" does not make any sense.
Ciao,
Dscho
-
| Jan 17, 6:43 am 2007 |
| Andy Parkins | Re: [PATCH] git-reset: make the output as the fetch output
On Wednesday 2007 January 17 13:27, Santi B
| Jan 17, 6:41 am 2007 |
| YOSHIFUJI Hideaki / | Re: [PATCH] git-reset: make the output as the fetch output
In article <8aa486160701170527p69c59510i2daf99e7e805ec5a@mail.gmail.com> (at Wed, 17 Jan 2007 14:27:15 +0100), "Santi B
| Jan 17, 6:38 am 2007 |
| sbejar | [PATCH] git-reset: make the output as the fetch output
... and only when HEAD is changed.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
git-reset.sh | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/git-reset.sh b/git-reset.sh
index bf2a058..acefddc 100755
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -24,6 +24,7 @@ do
usage
;;
*)
+ commit="$1"
rev=$(git-rev-parse --verify "$1") || exit
shift
break
@@ -84,14 +85,20 @@ fi
git-update-ref -m "$GIT_REFLOG_ACTION" HEAD "$rev"
...
| Jan 17, 5:56 am 2007 |
| Josh Boyer | [RFC] Add a suffix option to git-format-patch
Hi All,
I use git quite a bit to track my changes and then use
git-format-patch to generate patches to send on to others. For the
most part, it works great but I find myself constantly doing:
mv xxxx-foo.txt xxxx-foo.patch
Could we add an option to git-format-patch to use ".patch" as the file
suffix instead of ".txt"? Something like the below?
josh
diff --git a/builtin-log.c b/builtin-log.c
index a59b4ac..4eb2d32 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -217,6 +217,7 @@ ...
| Jan 17, 6:10 am 2007 |
| Brian Gernhardt | [PATCH] Make format-patch --suffix="" not add any suffix
Having a suffix of "." when the user explicitly asked for none is
somewhat confusing.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
builtin-log.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 04e3144..a60a987 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -276,7 +276,8 @@ static void reopen_stdout(struct commit *commit, int nr, int keep_subject)
while (filename[len - 1] == '.' || filename[len - 1] == ...
| Jan 17, 1:22 pm 2007 |
| Josh Boyer | Re: [RFC] Add a suffix option to git-format-patch
Yes, that's better. I was more going for "would something like this
option be accepted" to start with. And I'm lazy, so the patch I wrote
Good idea. I'll try and get this done soon-ish. I'm not very
familiar with the git code, so if someone beats me to it, I won't be
disappointed in the least ;)
josh
-
| Jan 17, 7:50 am 2007 |
| Junio C Hamano | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
I've considered it, but I do not think it is worth it.
If we did so, the configuration would look like:
[format]
suffix = .txt
which has a certain "Huh?" factor, and more importantly, a
careless user would end up with a patchfile that is named:
0001-Introduce-git-format-patch-suffix-patchtxt
which is I think much worse than not being able to say:
0001-Introduce-git-format-patch-suffix-patch
But I do not care that much either way.
-
| Jan 17, 12:27 pm 2007 |
| Johannes Schindelin | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-
| Jan 17, 6:11 pm 2007 |
| Brian Gernhardt | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
The first part seems like the easiest way to allow --suffix=""
actually remove the suffix while removing the "Huh?" factor you
mentioned. In fact, having --suffix="" add a suffix of "." is
somewhat confusing all on it's own.
The second just seems like an easy way to keep stupid mistakes from
occurring, but isn't needed.
I'll still post the patch, but not add the extra DWIMmery. I think
it's a better alternative than having to choose between putting "."
in all the suffixes ...
| Jan 17, 1:08 pm 2007 |
| Brian Gernhardt | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
I think that the best form of DWIM is that if the suffix is "", then
you simply skip the entire sprintf. Then any suffix has to have the
'.', but no suffix doesn't have it. Additional DWIMMmery could
remove an initial '.' from the suffix so that users expecting it to
be there don't get ".." in their file.
Patch (on top of yours) should follow shortly.
~~ Brian
-
| Jan 17, 12:51 pm 2007 |
| Horst H. von Brand | Re: [RFC] Add a suffix option to git-format-patch
Need to keep the length of that around for allocating string space and
such. Is the flexibility worth the hassle?
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513
-
| Jan 17, 9:39 am 2007 |
| Junio C Hamano | [PATCH] Introduce 'git-format-patch --suffix=patch'
The default can also be changed with "format.suffix" configuration.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Why not
>
> static const char *file_extension = ".txt"
>
> Hmm?
Let's do this instead. By the way, there is a bug in the
configuration parsing for format.headers from commit 20ff0680,
which needs to be check NULLness of the value the same way as
this one deals with format.suffix, which ...
| Jan 17, 12:18 pm 2007 |
| Johannes Schindelin | Re: [RFC] Add a suffix option to git-format-patch
Hi,
Why not
static const char *file_extension = ".txt"
Here, you would write
and here:
else if (!strncmp(argv[i], "--extension=", 12))
file_extension = argv[i] + 12;
You'd call it with "--extension=.patch", and if you really want, you can
make a config variable from it.
Ciao,
Dscho
-
| Jan 17, 6:49 am 2007 |
| Andy Whitcroft | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
This doesn't give us any possibility of not having a suffix. Can we not
-apw
-
| Jan 17, 12:20 pm 2007 |
| Junio C Hamano | Re: [PATCH] Introduce 'git-format-patch --suffix=patch'
I think it is generally accepted on this list that that kind of
DWIMmery is bad.
-
| Jan 17, 12:57 pm 2007 |
| davidk | Re: Rebasing stgit stacks
I have used it a little (together with git-svn), and one thing that
confused me was that when I got a conflict to resolve, it looked like
this:
...
<<<<<<
base version
======
my version
>>>>>>
...
Where "my version" is the code in the branch I'm rebasing, and
"base version" is the code in the branch I'm rebasing on.
This is kind of opposite of how e.g. "git pull" works, where the first
alternative is "my version". I guess it is an effect of the fact ...
| Jan 17, 4:07 am 2007 |
| Chris Wedgwood | [PATCH] cache.h; fix a couple of prototypes
Trivial patch.
diff --git a/cache.h b/cache.h
index 620b6a4..fda3f8e 100644
--- a/cache.h
+++ b/cache.h
@@ -317,7 +317,7 @@ void datestamp(char *buf, int bufsize);
unsigned long approxidate(const char *);
extern int setup_ident(void);
-extern void ignore_missing_committer_name();
+extern void ignore_missing_committer_name(void);
extern const char *git_author_info(int);
extern const char *git_committer_info(int);
@@ -400,7 +400,7 @@ extern void install_packed_git(struct packed_git ...
| Jan 16, 11:28 pm 2007 |
| Karl | Re: Rebasing stgit stacks
> > atop that branch.
| Jan 17, 2:03 am 2007 |
| Yann Dirson | Re: Rebasing stgit stacks
After all, my current implementation as "pull --to" mostly bypasses
the fetch, so it probably makes sense to use a new command.
However, "stg rebase <target>" does not sound right. I'm not very
happy with "stg rebaseto <target>" (or rebase-to) either.
"stg rebase --to <target>" may feel strange too (command without
non-option arg), but may finally a good choice after all ? What do
others think ?
Best regards,
--
Yann.
-
| Jan 17, 1:53 pm 2007 |
| Yann Dirson | Re: Rebasing stgit stacks
On Wed, Jan 17, 2007 at 10:03:13AM +0100, Karl Hasselstr
| Jan 17, 12:34 pm 2007 |
| Junio C Hamano | Jan 17, 10:32 am 2007 | |
| Michael S. Tsirkin | Re: How to merge FETCH_HEAD?
But, that can not take FETCH_HEAD either.
Would it be useful for git-merge FETCH_HEAD to work?
--
MST
-
| Jan 16, 10:09 pm 2007 |
| Uwe | Re: [PATCH RFC] new config option remote.<name>.pushexec
git push --exec=... is fine, but having it to specify every time is
annoying.
This sets the default remote program for pushing to remote <name>.
Signed-off-by: Uwe Kleine-K
| Jan 17, 9:44 am 2007 |
| Michael S. Tsirkin | Re: How to merge FETCH_HEAD?
Yes, that was it, thanks!
--
MST
-
| Jan 16, 11:33 pm 2007 |
| Junio C Hamano | Re: How to merge FETCH_HEAD?
Please try again, starting from the "git fetch".
I suspect the reason you think "merge FETCH_HEAD" does not work
is because you lost FETCH_HEAD when you did "git pull . FETCH_HEAD",
as I explained to you in an earlier message.
-
| Jan 16, 11:14 pm 2007 |
| Steven Grimm | Re: [RFC] Replace rebase with filtering
Well, yes there is, in fact: don't forget the existing history like
rebase currently does. Merge doesn't have the same problem. That's kind
of the crux of what I'm proposing here: if you change the implementation
of git's "Don't clutter my history with meaningless merges" feature from
a history-lossy operation (rebase as it stands today) to a display-time
filter (regular merge with an added "I'm just an update" marker) then
this problem evaporates and it becomes safe to clone *any* ...
| Jan 17, 3:21 pm 2007 |
| Horst H. von Brand | Re: [PATCH] Replace "echo -n" with printf in shell scripts.
Here (Fedora rawhide) /usr/bin/printf is part of coreutils.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513
-
| Jan 17, 9:29 am 2007 |
| Quy Tonthat | Re: [PATCH] git-remote exclude
I have no doubt your opposition to inclusion is important here. But some people
would (out-of-fashion'ly/arrogantly/dont-care'ly) submit their patches
"just for fun", as they did in the olden days. (Not that old to me though).
Quy
-
| Jan 17, 8:14 am 2007 |
| Johannes Schindelin | Re: [PATCH] git-remote exclude
Hi,
Hey, if others need that feature, I'm fine! And maybe I find myself in the
need of exactly the same feature that I was opposed to, later in my life.
Happened before, will happen again.
Ciao,
Dscho
-
| Jan 17, 8:19 am 2007 |
| Jakub Narebski | Re: [RFC] Git config file reader in Perl (WIP)
Could you add it to contrib/completion/ or at least put link
in http://git.or.cz/gitwiki/InterfacesFrontendsAndTools ?
TIA
--
Jakub Narebski
Poland
-
| Jan 17, 12:22 pm 2007 |
| Nikolai Weibull | Re: [RFC] Git config file reader in Perl (WIP)
I did announce it way back when, but since it's included with new
releases of Zsh there's really nothing interesting to add or link to.
It's also in Zsh's CVS repository, but I do my updates here:
http://git.bitwi.se/?p=dot-home.git;a=tree
although I now realize that I haven't pushed some recent updates to
that repository yet.
nikolai
-
| Jan 17, 1:01 pm 2007 |
| Johannes Schindelin | Re: [RFC] Git config file reader in Perl (WIP)
Hi,
I just tried this:
$ cat > .git/config << EOF
[section] key = "Hello\nWorld"
EOF
$ git-repo-config -l
section.key=Hello
World
Which would buy you what exactly? You can tell that the user did not say
"noval = true", but "noval". Great. But the _effect_ should be the same!
Anyway, I realize you don't like my solution, so I will just shut up.
Ciao,
Dscho
-
| Jan 17, 5:37 am 2007 |
| Johannes Schindelin | Re: [RFC] Git config file reader in Perl (WIP)
Hi,
So you want "git-repo-config --dump" to output something which has to be
scanned for escaping sequences?
If you call
$ git repo-config -l
you will _no longer_ see "\n"s, but rather newlines.
I don't know why you insist on newlines, when a NUL makes perfect sense:
Take everything until the next NUL. This is the key. Then take everything
Yes, it returns "", but this is _wrong_. A single "[section] noval" _only_
makes sense as a boolean. The information lies in its ...
| Jan 17, 3:44 am 2007 |
| Jakub Narebski | Re: [RFC] Git config file reader in Perl (WIP)
With "\n" as separator you can simply rrturn NUL in the noval case.
--
Jakub Narebski
Poland
-
| Jan 17, 5:11 am 2007 |
| Jakub Narebski | Re: [RFC] Git config file reader in Perl (WIP)
$ fatal: bad config file line <nn> in <config>
The same with quoted:
[someSection]
qthisKey = "has\na\nvalue\with\nseveral\nnewlines"
There is no escaping besides escaping " and escape character
i.e. escaping \ in git config. Se "\n" would work as well as NUL.
But only for "git repo-config --bool --get section.noval" output.
Semantically equivalent to "true".
--
Jakub Narebski
Poland
-
| Jan 17, 2:48 am 2007 |
| Johannes Schindelin | Re: [RFC] Git config file reader in Perl (WIP)
Hi,
It was about the human-readable -> internal -> human-readable -> internal
chain. Those are way too many transformations for little gain.
IMHO modern programs spend 99% of the time are spent transforming data.
There's a reason we program in C, Java, etc. and not in Assembler.
Sometimes computers and humans are too different to be able to cater for
both of them at the same time.
I know, I know. The geek inside me disagrees, too. But my experience
doesn't.
Ciao,
Dscho
-
| Jan 17, 5:50 pm 2007 |
| Nikolai Weibull | Re: [RFC] Git config file reader in Perl (WIP)
Then what did you mean in your mail from Jan 16, 2007 12:12 PM:
How silly would that be: we parse an easy-to-read format,
munge the easy-to-handle internal data format into another "easy-to-read"
format which is then parsed by a script language into an easy-to-handle
internal data format? No. NO.
It is suboptimal because it's hard for computers to inspect. An
optimal format would be accessible by all, whether human, machine,
robot, android, what have you.
I really don't like ...
| Jan 17, 11:08 am 2007 |
| Jakub Narebski | Re: [RFC] Git config file reader in Perl (WIP)
More relaxed section (actually _sub_section) titles are not the problem.
The fact that they are case sensitive (where section and key names
are not) can be.
--
Jakub Narebski
Poland
-
| Jan 17, 12:25 pm 2007 |
| Johannes Schindelin | Re: [RFC] Git config file reader in Perl (WIP)
Hi,
No it would not:
[someSection]
but is equivalent to
[section]
noval = true
Yes, this is not a boolean. The difference is that the callback function
is called with NULL in the former case, and with "" in the latter.
Hth,
Dscho
-
| Jan 17, 1:51 am 2007 |
| Jakub Narebski | Re: [RFC] Git config file reader in Perl (WIP)
Sorry, my mistake. I haven't noticed that your previous example
the error was "\w", not embedded newlines, and that embedded newlines
I like your solution.
The only ambiguity is how to deal with '[section] noval' case. You
propose to treat it as if it was '[section] noval = true' for --dump,
and not as if it was '[section] noval = ' or '[section] noval = ""'.
Good. But this _has_ to be explained in documentation.
That said, I still think that having alternate parser for a format
is a ...
| Jan 17, 7:00 am 2007 |
| Quy Tonthat | Re: [PATCH] git-remote exclude
I meant to say "track", but somehow "fetch" got to my fingers. Old ages, perhaps.
For different situations, there are different paths to choose to reach that
ultimate "After All" (Zen? NO!). I offered one (little) path and expect to see
more of bigger ones. That's the _why_ (and/or, the _why_ not).
Quy
-
| Jan 17, 7:13 am 2007 |
| Yann Dirson | Re: Rebasing stgit stacks
Unfortunately, using "reset('FETCH_HEAD')" or similar would not work.
Eg, in the case we have cloned an stgit branch as "origin", and the
revspec does not have a "+", git-fetch after a patch refresh in the
remote repo still updates FETCH_HEAD even if it notices it cannot then
fast-forward. With this we would end up with the "origin" branch not
being changed, and our stack still being rebased as if we had a "+"
refspec, which would be quite inconsistent.
Best regards,
--
Yann.
-
| Jan 17, 2:30 pm 2007 |
| previous day | today | next day |
|---|---|---|
| January 16, 2007 | January 17, 2007 | January 16, 2007 |
