cd

2013-04-03 Thread jpinheiro
init $ mkdir D $ echo "Hi" > D/F $ git add D/F $ rm -r D $ echo "Hey" > F $ git rm D/F This works as expected, and the only difference is the name of the file of the last echo. Is this the expected behavior of git rm? -- View this message in context: http://gi

Re: cd

2013-04-03 Thread Andreas Ericsson
On 04/03/2013 04:49 PM, jpinheiro wrote: Hi all, We are students from Universidade do Minho in Portugal, and we are using git in project as a case study. While experimenting with git we found an unexpected behavior with git rm. Here is a trace of the unexpected behavior: $ git init $ mkdir D $

`ab | (cd cd && git apply -)' fails with v2.0.0

2014-07-24 Thread Steffen Nurpmeso
Hello (again, psst, after a long time), it happened yesterday that i needed to do $ git diff HEAD:FILE COMMIT:SAME-FILE | > (cd src && git apply -) but found that didn't work with v2.0.0 (silently succeeds?, doing nothing). It works without the subshell and the cd(

Re: `ab | (cd cd && git apply -)' fails with v2.0.0

2014-07-24 Thread Michael J Gruber
Steffen Nurpmeso venit, vidit, dixit 24.07.2014 15:29: > Hello (again, psst, after a long time), > > it happened yesterday that i needed to do > > $ git diff HEAD:FILE COMMIT:SAME-FILE | > > (cd src && git apply -) > > but found that didn't wor

Re: `ab | (cd cd && git apply -)' fails with v2.0.0

2014-07-24 Thread Junio C Hamano
Michael J Gruber writes: > Steffen Nurpmeso venit, vidit, dixit 24.07.2014 15:29: >> Hello (again, psst, after a long time), >> >> it happened yesterday that i needed to do >> >> $ git diff HEAD:FILE COMMIT:SAME-FILE | >> > (cd src &&am

Re: `ab | (cd cd && git apply -)' fails with v2.0.0

2014-07-24 Thread Michael J Gruber
> >>> $ git diff HEAD:FILE COMMIT:SAME-FILE | >>> > (cd src && git apply -) >>> ... >> >> Ah little more context would help. Are you diffing files in the subdir >> src, or a file at the root which happens to be present in the subdir src >> a

Re: `ab | (cd cd && git apply -)' fails with v2.0.0

2014-07-25 Thread Steffen Nurpmeso
ppened yesterday that i needed to do |>>> |>>> $ git diff HEAD:FILE COMMIT:SAME-FILE | |>>>> (cd src && git apply -) |>>> ... |>> |>> Ah little more context would help. Are you diffing files in the subdir |>> src, or a file

[PATCH v3 1/5] tests: change "cd ... && git fetch" to "cd &&\n\tgit fetch"

2017-04-26 Thread Ævar Arnfjörð Bjarmason
Change occurrences "cd" followed by "fetch" on a single line to be on two lines. This is purely a stylistic change pointed out in code review for an unrelated patch. Change the these tests use so new tests added later using the more common style don't look out of pl

cdgit: cd relative to git workdir root

2013-09-16 Thread Thomas Koch
Hi, I frequently have the need to cd back to the root of the current git workdir and created to alias for this: git alias root = rev-parse --show-toplevel shell alias cdgit = cd $(git root) Maybe somebody likes this. Now it would be cool, to have an alias to cd into a specific subdir of the

Re: cdgit: cd relative to git workdir root

2013-09-16 Thread Adam Spiers
On Mon, Sep 16, 2013 at 09:01:14PM +0200, Thomas Koch wrote: > Hi, > > I frequently have the need to cd back to the root of the current git workdir > and created to alias for this: > > git alias root = rev-parse --show-toplevel > > shell alias cdgit = cd $(git root) &

Re: cdgit: cd relative to git workdir root

2013-09-16 Thread martin f krafft
also sprach Thomas Koch [2013.09.16.2101 +0200]: > shell alias cdgit = cd $(git root) I've tried to make this happen many years ago, but I never finished the ZLE widget that did it. The idea was to bind 'tab' to a function that would replace an occurrence of ~g in $LBUFFER with

[PATCH 12/12] t0001: drop subshells just for "cd"

2014-03-20 Thread Jeff King
Many tests do something like: ( mkdir foo && cd foo && git init ) You can do the same these days with "git init foo", which makes the tests shorter and simpler to read. Signed-off-by: Jeff King --- Unlike the last patch, this one _could_

[BUG] typo DWIMery with alias broken (cd to random dir)

2016-01-25 Thread Michael J Gruber
omething else) calls restore_env() multiple times, and restore_env frees orig_cwd such that subsequent restore_env(0) with external_alias=0 tries to cd to a random location. I have no idea whether orig_cwd=0 after freeing or something else would be the proper fix. Michael LANG=C git sss WARNING: You

[PATCHv2 1/3] git-p4 tests: cd to / before running python

2016-04-26 Thread Luke Diamand
C)' # function could fix that but it is not in Python until 3.3. time_in_seconds() { - python -c 'import time; print int(time.time())' + (cd / && python -c 'import time; print(int(time.time()))') } # Try to pick a unique port: guess a large numbe

Re: [BUG] typo DWIMery with alias broken (cd to random dir)

2016-01-26 Thread Duy Nguyen
hat area. Funny, though, that my user name shows up... > > I think the reason is that git.c's handle_alias() (or something else) > calls restore_env() multiple times, and restore_env frees orig_cwd such > that subsequent restore_env(0) with external_alias=0 tries to cd to a > random loc

[PATCH 1/1] pretty: note that %cd respects the --date= option

2014-08-20 Thread Thomas Braun
Signed-off-by: Thomas Braun --- Today I found out that both %cd and %ad pretty print format specifications honour the --date option as shown in: $ git log --abbrev=8 --date=short --pretty="%h (%s, %cd)" -n1 5bdb1c4e (Merge pull request #245 from kblees/kb/master/fix-libsvn-addres

git-archive doesn't support --date= option for %ad & %cd format:'s

2014-10-09 Thread Derek Moore
PRETTY FORMATS' format: documentation says, "%ad: author date (format respects --date= option)", and similarly for %cd. But git-archive does not support the --date= option for changing the date format in $Format:%ad$ or $Format:%cd$ substitution strings. Relatedly, I want a shor

[PATCH 1/2] git-p4 tests: cd to testdir before running python

2016-04-23 Thread Luke Diamand
ttime(CLOCK_MONOTONIC)' # function could fix that but it is not in Python until 3.3. time_in_seconds() { - python -c 'import time; print int(time.time())' + (cd "$TEST_DIRECTORY" && python -c 'import time; print(int(time.time()))') } # Try to pic

Re: [PATCH 1/1] pretty: note that %cd respects the --date= option

2014-08-21 Thread Junio C Hamano
Thomas Braun writes: > Signed-off-by: Thomas Braun > --- > > Today I found out that both %cd and %ad pretty print format > specifications honour the --date option as shown in: > > $ git log --abbrev=8 --date=short --pretty="%h (%s, %cd)" -n1 > 5bdb1c4e (Merge

Re: git-archive doesn't support --date= option for %ad & %cd format:'s

2014-10-09 Thread Jeff King
On Thu, Oct 09, 2014 at 11:19:36AM -0500, Derek Moore wrote: > PRETTY FORMATS' format: documentation says, "%ad: author date > (format respects --date= option)", and similarly for %cd. > > But git-archive does not support the --date= option for changing the >

Re: git-archive doesn't support --date= option for %ad & %cd format:'s

2014-10-09 Thread Jeff King
On Thu, Oct 09, 2014 at 03:24:28PM -0400, Jeff King wrote: > On Thu, Oct 09, 2014 at 11:19:36AM -0500, Derek Moore wrote: > > > PRETTY FORMATS' format: documentation says, "%ad: author date > > (format respects --date= option)", and similarly for %cd. > >

Re: git-archive doesn't support --date= option for %ad & %cd format:'s

2014-10-09 Thread Derek Moore
> I don't see a big problem with that. But I wonder if we would do better > to introduce arbitrary strftime-like formatting, so we do not have to > keep adding new formats. My thoughts exactly... This list seems to be a prove-yourself-with-patches sorta place. If I can find the time, I'll try att

[RFC PATCH v4 4/9] fixup:t7404:use 'git -C' instead of cd .. && git

2018-04-18 Thread Eddy Petrișor
-submodule-update.sh @@ -288,10 +288,7 @@ test_expect_success 'submodule update --remote --recursive --init should fetch m git commit -m "add l1 module with branch b1 in super5" && git submodule init submodl1b1 && git clone super5 super &&

a) Book (Hard-Copy). b) CD-ROM c) Journal d) E-Library e) Inclusion in all the Indexes of http://wseas.org/wseas/cms.action?id=6

2013-03-31 Thread Viky Hanioti
ificial Intelligence and Cognitive Science (AICS '13) 1st International Conference on Innovative Computing and Information Processing (INCIP '13) For the accepted papers we provide --- a) Book (Hard-Copy). b) CD-ROM Proceedings with all collocated con